reinstalling SIGCHLD handler before wait()

Markus Friedl Markus.Friedl at informatik.uni-erlangen.de
Wed Dec 13 19:10:51 EST 2000


On Wed, Dec 13, 2000 at 01:20:50PM +1100, Damien Miller wrote:
> 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?

what happens with signals between the waitpid and the re-install?

i'd like to have the handler _always_ installed. i prefer this
signal-semantic.





More information about the openssh-unix-dev mailing list