News for hackers. Stuff that matters.
Re:Nweb: a tiny, safe web server (static pages only) by cgh on Tuesday April 01, 2014 @12:12AM (#7506144)
> 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.

Re:Nweb: a tiny, safe web server (static pages only) by Pitarou on Tuesday April 01, 2014 @06:19AM (#7507163)
Confirmed the SIGCLD problem.

I had to change it to SIGCHLD to get it to compile on my Mac.