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: Remove posix waitid



On 20/11/2019 12:14, Christian Brauner wrote:
> On Wed, Nov 20, 2019 at 11:15:35AM -0300, Adhemerval Zanella wrote:
>> The POSIX waitid implementation is problematic in some ways:
>>
>>   - It emulates using waitpid, which default implementation calls
>>     wait4 and wait4 returns ENOSYS as default.
>>
>>   - Also by using waitpid it does not allod support the WNOWAIT,
>>     WEXITED, WSTOPPED, or WCONTINUED flag.  With current POSIX
>>     specification the flags are no longer marked as optional.
>>
>> Also due BZ#23091 Hurd still uses the implementation, so it is moved
>> to as a Hurd arch-specific folder (with some minor cleanups).
>>
>> Checked against a i686-gnu (run-built-tests=no)
> 
> I haven't followed that thread too closely, so sorry for maybe redundant
> questions.
> Does this mean you're removing support for the waitid() _syscall_ from
> glibc? How do you intend to deal with P_PIDFD released with kernel 5.3?
> 
> Christian
> 

No, this patch moves the POSIX emulation at sysdeps/posix/waitid.c based
on waitpid to a Hurd specific implementation.  Linux will still be done
by the generic syscalls.list, meaning it will a direct syscall.


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