Intro to sockets?
jim frost
madd at world.std.com
Mon Mar 26 08:38:59 AEST 1990
Thanks for reposting my primer, but please note that there is a
serious bug in the fireman() function. It's defined in the 11/22/89
version as:
void fireman()
{ union wait wstatus;
while(wait3(&wstatus,WNOHANG,NULL) >= 0);
}
It should be:
void fireman()
{ union wait wstatus;
while(wait3(&wstatus,WNOHANG,NULL) > 0);
}
This minor difference results in some pretty dramatic hanging on your
server's part in some instances :-). I have a newer version of the
tutorial available (Feb something-or-other 1990) which corrects this
bug (there may be other differences, I can't remember). Please send
requests for the update to jimf at saber.com (..!harvard!saber!jimf).
Happy hacking,
jim frost
saber software
jimf at saber.com
More information about the Comp.unix.questions
mailing list