From: GNU Libc Maintainers Date: Thu, 12 Mar 2020 22:47:03 +0000 (+0000) Subject: local-grantpt X-Git-Tag: archive/raspbian/2.30-2+rpi1^2~47 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3c8ae88e7549e98144363bf7399ebea12fd98cf1;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 3214ab06d..f381c1b2a 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