unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Simon Ser <contact@emersion.fr>
To: "libc-alpha@sourceware.org" <libc-alpha@sourceware.org>
Subject: Re: [PATCH] manual: don't ignore SIGCHLD when calling waitpid
Date: Wed, 17 Apr 2019 18:34:12 +0000	[thread overview]
Message-ID: <mrSMqWcdkD4oDu3VVfhHxrlKvush4ZHdIIsixwqu4XIPxZuzuGB_19gVPSUesb9OXB9uqmZrJqmYbAwVNpVMjNvkHN08BmP1FT6M5KPWKjY=@emersion.fr> (raw)
In-Reply-To: <UeWQ4A1a4GgI6uaX0Mud4BwN2NlaSaJU3UHzLm5wxpZTbkxvq5HMLy_lxja53gYGMmaJ0uRH7hJv94BX8hxnAyVDsIhRFxMNJwVf33oCLS4=@emersion.fr>

Hi,

Could anyone review this? I can't find a maintainer to Cc on the wiki.

Thanks,

Simon Ser

On Thursday, January 17, 2019 4:35 PM, Simon Ser <contact@emersion.fr> wrote:
> 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

  reply	other threads:[~2019-04-17 18:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-17 14:35 [PATCH] manual: don't ignore SIGCHLD when calling waitpid Simon Ser
2019-04-17 18:34 ` Simon Ser [this message]
2019-04-17 19:05   ` Adhemerval Zanella
2019-04-17 19:44     ` Paul Eggert
2019-04-17 20:07       ` Adhemerval Zanella

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='mrSMqWcdkD4oDu3VVfhHxrlKvush4ZHdIIsixwqu4XIPxZuzuGB_19gVPSUesb9OXB9uqmZrJqmYbAwVNpVMjNvkHN08BmP1FT6M5KPWKjY=@emersion.fr' \
    --to=contact@emersion.fr \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).