reinstalling SIGCHLD handler before wait()
Wojtek Pilorz
wpilorz at bdk.pl
Wed Dec 13 20:24:03 EST 2000
On Wed, 13 Dec 2000, Markus Friedl wrote:
> Date: Wed, 13 Dec 2000 09:10:51 +0100
> From: Markus Friedl <Markus.Friedl at informatik.uni-erlangen.de>
> To: Damien Miller <djm at mindrot.org>
> Cc: Kevin Steves <stevesk at pobox.com>, openssh-unix-dev at mindrot.org
> Subject: Re: reinstalling SIGCHLD handler before wait()
>
> 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.
>
Maybe we could use sigaction rather than signal ?
I believe sigaction in considered more robust and preferred way of
handling signals.
Best regards,
Wojtek
More information about the openssh-unix-dev
mailing list