version 1.17, 1997/08/31 18:00:43 |
version 1.18, 1997/09/03 18:01:01 |
|
|
} |
} |
sleep(1); |
sleep(1); |
|
|
|
msg("\aconnection closed."); |
|
exit(1); |
|
} |
|
|
/* |
/* |
* Use sigaction() instead of signal() to avoid getting SIGCHLDs |
* Use sigaction() instead of signal() to avoid getting SIGCHLDs |
* for stopped children. |
* for stopped children. |
|
|
sa.sa_flags = SA_RESTART | SA_NOCLDSTOP; |
sa.sa_flags = SA_RESTART | SA_NOCLDSTOP; |
sa.sa_handler = catch_child; |
sa.sa_handler = catch_child; |
(void)sigaction(SIGCHLD, &sa, NULL); |
(void)sigaction(SIGCHLD, &sa, NULL); |
|
|
msg("\aconnection closed."); |
|
exit(1); |
|
} |
|
|
|
/* |
/* |
* We may still own the socket, and may have a pending SIGURG (or might |
* We may still own the socket, and may have a pending SIGURG (or might |