[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] fatal-signal.c's install_handlers catches ignored signa
From: |
Bruno Haible |
Subject: |
Re: [bug-gnulib] fatal-signal.c's install_handlers catches ignored signals? |
Date: |
Fri, 10 Dec 2004 20:34:55 +0100 |
User-agent: |
KMail/1.5 |
Paul Eggert wrote:
> I was considering using fatal-signal.c but noticed that
> install_handlers catches signals even if they're being ignored. The
> usual tradition is to continue to ignore signals if they were ignored
> at startup.
Thanks for the feedback on this module.
What's precisely the case when this would matter?
- What sense would it make for a program to install SIG_IGN handlers for
a signal and also call at_fatal_signal for it ?
- If the SIG_IGN is not installed by the program but by its parent process?
This is dubious practice, as written in
http://www.opengroup.org/onlinepubs/009695399/functions/exec.html
"... Therefore, it is best not to block or ignore signals across
execs without explicit reason to do so, and especially not to block
signals across execs of arbitrary (not closely co-operating) programs."
Bruno