hurd: make wait4 a cancellation point

System Internals / glibc - Samuel Thibault [ens-lyon.org] - 28 June 2020 18:04 UTC

and add _nocancel variant.

- sysdeps/mach/hurd/Makefile [io] (sysdep_routines): Add wait4_nocancel.
- sysdeps/mach/hurd/wait4.c: Include (__wait4): Surround __proc_wait with enabling async cancel, and use __USEPORT_CANCEL instead of __USEPORT.
- sysdeps/mach/hurd/wait4_nocancel.c: New file, contains previous implementation of __wait4.
- sysdeps/mach/hurd/not-cancel.h (__waitpid_nocancel): Replace macro with __wait4_nocancel declaration with hidden proto, and make __waitpid_nocancel call __wait4_nocancel.

09effdc9b0 hurd: make wait4 a cancellation point
sysdeps/mach/hurd/Makefile | 3 ++-
sysdeps/mach/hurd/not-cancel.h | 9 +++++--
sysdeps/mach/hurd/wait4.c | 10 ++++---
sysdeps/mach/hurd/wait4_nocancel.c | 54 ++++++++++++++++++++++++++++++++++++++
4 files changed, 70 insertions(+), 6 deletions(-)

Upstream: sourceware.org


  • Share