[PATCH] fix impossible case with waitpid(2) in truss

Garrett Cooper yanegomi at gmail.com
Tue Feb 15 04:12:04 UTC 2011


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: impossible-waitpid-case.patch
Type: text/x-patch
Size: 375 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20110215/87ec4cf1/impossible-waitpid-case.bin


More information about the freebsd-hackers mailing list