execve signal reset
Using man-pages 3.23 on Ubuntu lucid, I recently had cause to look up what happens to signal handlers across execve(). The execve(2) manual page contains the following sentence:
The dispositions of any signals that are being caught are reset to being ignored.
As it happened, though, the signal I'm interested in right now defaults to "terminate process", so I found this statement ambiguous, and looked up POSIX, which says "Signals set to be caught by the calling process image shall be set to the default action in the new process image".
How about the following patch?
man2/execve.2 +2 -1
@@ -120,7 +120,8 @@ All process attributes are preserved during an except the following: .IP * The dispositions of any signals that are being caught are -reset to being ignored. +reset to the default action +.RB ( signal (7)). .IP * Any alternate signal stack is not preserved .RB ( sigaltstack (2)).
Thanks,
Signature · 5 lines
Colin Watson [[email protected]] -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello Colin,
Quoted 7 lines · Colin Watson
Using man-pages 3.23 on Ubuntu lucid, I recently had cause to look up what happens to signal handlers across
execve(). The execve(2) manual page contains the following sentence:The dispositions of any signals that are being caught are reset to being ignored.
Quoted 6 lines
As it happened, though, the signal I'm interested in right now defaults to "terminate process", so I found this statement ambiguous, and looked up POSIX, which says "Signals set to be caught by the calling process image shall be set to the default action in the new process image".
How about the following patch?
Obviously correct, and applied for 2.34.
Thanks,
Michael
Quoted 21 lines
man2/execve.2 +0
-0@@ -120,7 +120,8 @@ All process attributes are preserved during anexcept the following:
.IP *
The dispositions of any signals that are being caught areman2/execve.2 +2
-1-reset to being ignored. +reset to the default action +.RB ( signal (7))..IP *
Any alternate signal stack is not preserved
.RB ( sigaltstack (2)).Thanks,
--
Colin Watson [[email protected]]
Signature · 7 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface" http://blog.man7.org/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html