From: GNU Libc Maintainers Date: Thu, 15 Aug 2024 09:21:36 +0000 (+0200) Subject: local-grantpt X-Git-Tag: archive/raspbian/2.31-13+rpi1+deb11u11^2~47 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c783bad24cccd55dcfbc8ae8b94c5e685b992765;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 aa741eebd..446048373 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