aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-11-13 10:42:05 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2019-12-19 16:11:09 -0300
commit478f70780f28a270205ddbe8cb6ec29cb41d586e (patch)
treec46c10ac218ba891188667249f5cb52755e4351c /sysdeps/generic
parent6a265e577e8d7c9c950a793139df19b2d050ce5b (diff)
downloadglibc-478f70780f28a270205ddbe8cb6ec29cb41d586e.tar
glibc-478f70780f28a270205ddbe8cb6ec29cb41d586e.tar.gz
glibc-478f70780f28a270205ddbe8cb6ec29cb41d586e.tar.bz2
glibc-478f70780f28a270205ddbe8cb6ec29cb41d586e.zip
Remove __waitpid_nocancel
It enables and disables cancellation with pthread_setcancelstate before calling the waitpid. It simplifies the waitpid implementation for architectures that do not provide either __NR_waitpid or __NR_wait4. Checked on x86_64-linux-gnu.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/not-cancel.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sysdeps/generic/not-cancel.h b/sysdeps/generic/not-cancel.h
index d3b53e48cf..e0729bb1db 100644
--- a/sysdeps/generic/not-cancel.h
+++ b/sysdeps/generic/not-cancel.h
@@ -47,8 +47,6 @@
__write (fd, buf, n)
#define __writev_nocancel_nostatus(fd, iov, n) \
(void) __writev (fd, iov, n)
-# define __waitpid_nocancel(pid, stat_loc, options) \
- __waitpid (pid, stat_loc, options)
#define __fcntl64_nocancel(fd, cmd, ...) \
__fcntl64 (fd, cmd, __VA_ARGS__)