From: GNU Libc Maintainers Date: Thu, 6 Jan 2022 21:32:53 +0000 (+0000) Subject: local-grantpt X-Git-Tag: archive/raspbian/2.33-5+rpi1^2^2^2~41 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a61ea6cf3fb66608e7c82df631bf4bc271e380cd;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 46b6f5662..7ca8e494d 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