[PATCH 3/3] posix: New Linux posix_spawn{p} implementation

Florian Weimer fweimer@redhat.com
Mon May 30 11:35:00 GMT 2016


On 05/29/2016 11:54 AM, Eric Wong wrote:
> Adhemerval Zanella <adhemerval.zanella@linaro.org> wrote:
>> +static int
>> +__spawni_child (void *arguments)
>
> <snip>
>
>> +fail:
>> +  /* Since sizeof errno < PIPE_BUF, the write is atomic. */
>> +  ret = -ret;
>> +  if (ret)
>> +    while (write_not_cancel (p, &ret, sizeof ret) < 0)
>> +      continue;
>> +  exit (SPAWN_ERROR);
>> +}
>
> Sorry for not noticing earlier, but shouldn't it be
> "_exit" instead of "exit" when the child fails?

Good point.  Would you file a bug for this, please?

Thanks,
Florian



More information about the Libc-alpha mailing list