Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 1997 02:47:26 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        ache@nagual.pp.ru, bde@zeta.org.au
Cc:        current@FreeBSD.ORG, sos@sos.freebsd.dk, terry@lambert.org
Subject:   Re: siginterrupt (was Re: Error in sleep !)
Message-ID:  <199708131647.CAA18733@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>I mean not application which uses some signal interface but initial
>handling of SIG_DFL _before_ any sigaction() or signal() used. I.e. is it
>safe per POSIX to have SA_RESTART for SIG_DFL action initially at
>application startup (before any application actions)? 

The initial value for sa_flags seems to be unspecified.  In practice, it
is 0 in FreeBSD.  This probably only matters if you use sigaction() to
find the old value and write a modified value, since SA_RESTART doesn't
affect SIG_DFL actions (it only affects caught signals).  It doesn't
matter for the other flags, since the "BSD default" for them is off.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708131647.CAA18733>