From: GNU Libc Maintainers Date: Fri, 10 Jan 2020 22:21:25 +0000 (+0000) Subject: local-grantpt X-Git-Tag: archive/raspbian/2.29-9+rpi1~1^2~49 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ec101e87a351a6f6f716a5ce36915955dd54ad55;p=glibc.git local-grantpt Gbp-Pq: Topic kfreebsd Gbp-Pq: Name local-grantpt.diff --- diff --git a/sysdeps/unix/grantpt.c b/sysdeps/unix/grantpt.c index e2e6df14c..ed928d63d 100644 --- a/sysdeps/unix/grantpt.c +++ b/sysdeps/unix/grantpt.c @@ -219,9 +219,13 @@ grantpt (int fd) else { int w; - +retry: if (__waitpid (pid, &w, 0) == -1) + { + if (errno == EINTR) + goto retry; goto cleanup; + }; if (!WIFEXITED (w)) __set_errno (ENOEXEC); else