This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] manual: don't ignore SIGCHLD when calling waitpid
- From: Simon Ser <contact at emersion dot fr>
- To: libc-alpha at sourceware dot org
- Cc: emersion <contact at emersion dot fr>
- Date: Thu, 17 Jan 2019 14:35:52 +0000
- Subject: [PATCH] manual: don't ignore SIGCHLD when calling waitpid
- Reply-to: Simon Ser <contact at emersion dot fr>
From: emersion <contact@emersion.fr>
If SIGCHLD is ignore, child process information is discarded as soon as they
exit, making it impossible to retrieve their status with waitpid.
---
ChangeLog | 4 ++++
manual/job.texi | 2 --
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4c34d45a..661d2749 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-01-17 Simon Ser <contact@emersion.fr>
+
+ * manual/job.texi: don't ignore SIGCHLD when calling waitpid
+
2019-01-16 Paul A. Clarke <pc@us.ibm.com>
* sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
diff --git a/manual/job.texi b/manual/job.texi
index 05a42ea8..0fc7f51a 100644
--- a/manual/job.texi
+++ b/manual/job.texi
@@ -414,7 +414,6 @@ init_shell ()
signal (SIGTSTP, SIG_IGN);
signal (SIGTTIN, SIG_IGN);
signal (SIGTTOU, SIG_IGN);
- signal (SIGCHLD, SIG_IGN);
/* @r{Put ourselves in our own process group.} */
shell_pgid = getpid ();
@@ -530,7 +529,6 @@ launch_process (process *p, pid_t pgid,
signal (SIGTSTP, SIG_DFL);
signal (SIGTTIN, SIG_DFL);
signal (SIGTTOU, SIG_DFL);
- signal (SIGCHLD, SIG_DFL);
@}
/* @r{Set the standard input/output channels of the new process.} */
--
2.20.1