From: GNU Libc Maintainers Date: Tue, 15 Mar 2022 22:48:49 +0000 (+0000) Subject: local-grantpt X-Git-Tag: archive/raspbian/2.28-10+rpi1+deb10u1^2~49 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=87f42c6c42b1a75e2f22295dfb06de6e6c1a35de;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 9d851a4e1..7ef418fea 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