summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/signal.3
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-10-11 09:51:26 +0000
committerguenther <guenther@openbsd.org>2015-10-11 09:51:26 +0000
commit93024534bb8508f1ab1cee1f3713f250b46dae6e (patch)
tree189519d38f46336fff0155fec8adb800e8fd750c /lib/libc/gen/signal.3
parentPrefer .Fa over .Em for struct members (diff)
downloadwireguard-openbsd-93024534bb8508f1ab1cee1f3713f250b46dae6e.tar.xz
wireguard-openbsd-93024534bb8508f1ab1cee1f3713f250b46dae6e.zip
Document that execve(2) resets SIGCHLD to SIG_DFL
wordsmithing and ok jmc@
Diffstat (limited to 'lib/libc/gen/signal.3')
-rw-r--r--lib/libc/gen/signal.39
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/gen/signal.3 b/lib/libc/gen/signal.3
index 0dc8dce14d8..a91f37692f5 100644
--- a/lib/libc/gen/signal.3
+++ b/lib/libc/gen/signal.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: signal.3,v 1.53 2015/05/12 02:44:06 guenther Exp $
+.\" $OpenBSD: signal.3,v 1.54 2015/10/11 09:51:26 guenther Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -27,7 +27,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 12 2015 $
+.Dd $Mdocdate: October 11 2015 $
.Dt SIGNAL 3
.Os
.Sh NAME
@@ -228,10 +228,13 @@ a specific signal.
.Pp
When a process which has installed signal handlers forks,
the child process inherits the signals.
-All caught signals may be reset to their default action by a call
+All caught signals, as well as
+.Dv SIGCHLD ,
+are reset to their default action by a call
to the
.Xr execve 2
function;
+other
ignored signals remain ignored.
.Pp
The following functions are either reentrant or not interruptible