From: GNU Libc Maintainers Date: Thu, 13 Jul 2023 18:07:47 +0000 (+0100) Subject: local-grantpt X-Git-Tag: archive/raspbian/2.36-9+rpi1+deb12u1^2~39 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a2f6ed55656d4c5e01cb0bb39e2e3a166e9f6401;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 1c1cc2c3c..6c95d5ee4 100644 --- a/sysdeps/unix/grantpt.c +++ b/sysdeps/unix/grantpt.c @@ -218,9 +218,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