reinstalling SIGCHLD handler before wait()

Damien Miller djm at mindrot.org
Wed Dec 13 13:20:50 EST 2000


On Wed, 13 Dec 2000, Markus Friedl wrote:

> i wrote this code and i'd prefer signal handlers that
> only set flags and do _not_ call waitpid etc. moreover, i
> don't want to have to re-install the signal handler.
> i'll read my stevens again.

How about delaying the reinstatement of sigchld_handler2 until after
the while(waidpid()) loop in server_loop2?

-d
 
-- 
| ``We've all heard that a million monkeys banging on | Damien Miller -
| a million typewriters will eventually reproduce the | <djm at mindrot.org>
| works of Shakespeare. Now, thanks to the Internet, / 
| we know this is not true.'' - Robert Wilensky UCB / http://www.mindrot.org







More information about the openssh-unix-dev mailing list