Hi, waitpid(2) returns a value in the set { -1, 0, <pid> } (-1 in the event of an ERROR, 0 when WNOHANG is specified, <pid> when the process exits according to wait(2)); it never returns a value < -1. If someone could commit this patch it would be appreciated. Thanks, -Garrett
Index: usr.bin/truss/setup.c =================================================================== --- usr.bin/truss/setup.c (revision 218689) +++ usr.bin/truss/setup.c (working copy) @@ -83,7 +83,7 @@ } /* Only in the parent here */ - if (waitpid(pid, &waitval, 0) < -1) { + if (waitpid(pid, &waitval, 0) == -1) { err(1, "unexpect stop in waitpid"); return 0; }
_______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"