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] sysdeps/wait: Use the waitid syscall if required


On Wed, Sep 25, 2019 at 03:55:14PM -0700, Alistair Francis wrote:
> If the waitpid and wait4 syscalls aren't avaliable (such as y2038 safe
> 32-bit systems) let us use the waitid syscall isntead.
> 
> Unfortunately waitid is substantially differnt to waitpid and wait4, so
> the conversion ends up being complex.
> 
> For full support we need the 5.4+ kernel as that allows a pid of 0 with
> the P_PGID idtype.
> 
> 2019-09-16  Alistair Francis  <alistair.francis@wdc.com>
> 
> 	* sysdeps/unix/sysv/linux/wait.c: Use the waitid syscall if required.
> 	* sysdeps/unix/sysv/linux/waitpid.c: Likewise.
> 	* sysdeps/unix/sysv/linux/waitpid_nocancel.c: Likewise.

If wait4 is not available, shouldn't it be emulated as well as waitpid?


-- 
ldv

Attachment: signature.asc
Description: PGP signature


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