public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: libc-alpha@sourceware.org
Subject: Re: [PATCH] linux: Fix posix_spawn return code if clone fails (BZ#29109)
Date: Fri, 6 May 2022 10:43:57 -0300	[thread overview]
Message-ID: <3c8dacb6-5e11-1c72-2fd7-f36fdd14ef5d@linaro.org> (raw)
In-Reply-To: <20220502154233.4007963-1-adhemerval.zanella@linaro.org>

I will commit this shortly if no one opposes it.

On 02/05/2022 12:42, Adhemerval Zanella wrote:
> The __clone_internal returns the error on errno.
> 
> Checked on x86_64-linux-gnu.
> ---
>  sysdeps/unix/sysv/linux/spawni.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sysdeps/unix/sysv/linux/spawni.c b/sysdeps/unix/sysv/linux/spawni.c
> index d703485e3f..d6f5ca89cd 100644
> --- a/sysdeps/unix/sysv/linux/spawni.c
> +++ b/sysdeps/unix/sysv/linux/spawni.c
> @@ -409,7 +409,7 @@ __spawnix (pid_t * pid, const char *file,
>  	__waitpid (new_pid, NULL, 0);
>      }
>    else
> -    ec = -new_pid;
> +    ec = errno;
>  
>    __munmap (stack, stack_size);
>  

      reply	other threads:[~2022-05-06 13:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-02 15:42 Adhemerval Zanella
2022-05-06 13:43 ` Adhemerval Zanella [this message]

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

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

  git send-email \
    --in-reply-to=3c8dacb6-5e11-1c72-2fd7-f36fdd14ef5d@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --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).