Displaying 1 result from an estimated 1 matches for "39a50".
Did you mean:
39550
2002 Sep 03
2
[patch] for rsync
...pid_t pid;
> int status;
> } pid_stat_table[10];
>
37c42,47
< while (waitpid(pid, status, WNOHANG) == 0) {
---
> pid_t waited_pid;
> int cnt;
>
> while ( 1 ) {
> waited_pid = waitpid(pid, status, WNOHANG);
> if ( waited_pid == 0 ) {
39a50
> } else break;
40a52,63
> if (( waited_pid == -1 ) && ( errno == ECHILD )) {
> /* status of requested child no longer available. Check */
> /* to see if it was processed by the sigchld_handler. */
> cnt = 0;
> while ( cnt <...