This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



On 30/05/2016 08:02, Florian Weimer wrote:
> 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

Thanks for reporting, I opened BZ#20178.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=20178


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]