Search Results

Search: Posts Made By: harismn
Forum: Programming 01-15-2002
14,929
Posted By harismn
try this: while ((ret =...
try this:

while ((ret = waitpid((pid_t)-1, &status, WNOHANG)) != 0) {
printf("ret : %d", ret);
}

put this in your main loop and it will remove all defunct processes.
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 06:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy