Alan Coopersmith <Alan.Coopersmith at Sun.COM> wrote:
> signal() is unsafe, unportable, and deprecated. sigaction() is almost
> always preferred. (On SysV OS'es, including Solaris, signal() resets
> the signal handler to the default when the signal is received, leaving
> a race condition before the handler can reassert it - sigaction does not
> do this. See "Advanced Programming in the Unix Environment" or "Solaris
On SYSVr4 based systems, there is a simple way to make signal() based
programs safe:
#define singal sigset
J?rg
--
EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin
js at cs.tu-berlin.de (uni)
joerg.schilling at fokus.fraunhofer.de (work) Blog:
http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily