Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 1997 00:15:29 +0400 (MSD)
From:      =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.pp.ru>
To:        Terry Lambert <terry@lambert.org>
Cc:        bde@zeta.org.au, current@FreeBSD.ORG, sos@sos.freebsd.dk
Subject:   Re: siginterrupt (was Re: Error in sleep !)
Message-ID:  <Pine.BSF.3.96.970814000608.19797A-100000@lsd.relcom.eu.net>
In-Reply-To: <199708131950.MAA12930@phaeton.artisoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 13 Aug 1997, Terry Lambert wrote:

> Without you specifically calling siginterrupt() to toggle SA_RESTART
> from off to on (default is off), or calling sigaction() to set the

Oh, no. siginterrupt() affects signal() only and default is _on_ for 
signal(). siginterrupt() not affects sigaction() at all.

> What if you call neither sigaction(), nor signal()?  What if you
> call sleep(3)?  What behaviour does it have?  That's the point...

As Bruce already says, only catched signals affects syscalls (restartable
or not), so you must to call either signal() or sigaction() to have signal
catched. POSIX requirement not affects SIG_DFL action.

-- 
Andrey A. Chernov
<ache@null.net>
http://www.nagual.pp.ru/~ache/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970814000608.19797A-100000>