Re: Resetting signal handlers

Alan Cox (
Sun, 15 Jun 1997 16:16:11 +0100 (BST)

> While programming something using signals, I happened to notice
> that Linux resets signal handlers after a signal is caught (i.e.
> you have to call the signal function again from within the handler).


> instead of signal.h fixes this behaviour. How about standardizing
> this to POSIX.1 by having Linux stop resetting handlers? The race

POSIX.1 doesnt standardise this either way. Read the spec. It provides
sigaction() which is a portable way to set signal handling behaviour
for a signal handler.