Return to rlogin.c CVS log | Up to [local] / src / usr.bin / rlogin |
version 1.19, 1998/03/25 20:22:08 | version 1.20, 1998/06/03 16:20:33 | ||
---|---|---|---|
|
|
||
* Use sigaction() instead of signal() to avoid getting SIGCHLDs | * Use sigaction() instead of signal() to avoid getting SIGCHLDs | ||
* for stopped children. | * for stopped children. | ||
*/ | */ | ||
memset(&sa, 0, sizeof sa); | |||
sigemptyset(&sa.sa_mask); | sigemptyset(&sa.sa_mask); | ||
sa.sa_flags = SA_RESTART | SA_NOCLDSTOP; | sa.sa_flags = SA_RESTART | SA_NOCLDSTOP; | ||
sa.sa_handler = catch_child; | sa.sa_handler = catch_child; |