11 ms·
> Also, casting function calls to (void) is nonsensical. This is an older convention to indicate that the programmer knows the function returns a value but has
by cgh 13y ago
> Also, casting function calls to (void) is nonsensical.
This is an older convention to indicate that the programmer knows the function returns a value but has chosen to ignore it. It got around the false positives generated by lint.
This code uses SIGCLD which I don't think is supported by BSD, where it is called SIGCHLD and is slightly different (someone please correct me if I'm wrong). If that's the case, then the author's assertion that it "should run unchanged on AIX, Linux®, or any other UNIX version" is incorrect - it will only run on System V varieties.
- Pitarou 13y agoConfirmed the SIGCLD problem. I had to change it to SIGCHLD to get it to compile on my Mac.