OpenSSH 2.5.0p1 vs. SA_RESTART

Gert Doering gert at greenie.muc.de
Sun Feb 18 21:54:34 EST 2001


Hi,

On Sun, Feb 18, 2001 at 01:05:01PM +1100, Damien Miller wrote:
> @@ -112,6 +112,10 @@
>  		if (sig == SIGCHLD)
>  			sa.sa_flags |= SA_RESTART;
>  #endif
> +#ifdef SA_INTERRUPT
> +		if (sig == SIGCHLD)
> +			sa.sa_flags |= SA_INTERRUPT;
> +#endif

Shouldn't SA_INTERRUPT do the exact opposite of SA_RESTART?

SA_RESTART = restart system calls after a signal

SA_INTERRUPT = do *not* restart (= interrupt) system calls

- this would be consistent with the default settings, which on SunOS 
and the older BSDs is "restart always", while on SysV, it's "interrupt
always".

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert at greenie.muc.de
fax: +49-89-35655025                        gert.doering at physik.tu-muenchen.de





More information about the openssh-unix-dev mailing list