From: GNU Libc Maintainers Date: Sat, 27 Aug 2022 11:38:11 +0000 (+0100) Subject: local-grantpt X-Git-Tag: archive/raspbian/2.34-7+rpi1~1^2~40 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=26cf6a4678d7f5473054d14858b83617bff38452;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 6269ee2bd..cb049657e 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