From: GNU Libc Maintainers Date: Mon, 16 Jan 2017 17:43:37 +0000 (+0000) Subject: local-grantpt X-Git-Tag: archive/raspbian/2.25-3+rpi1~1^2^2^2^2^2^2^2~59 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7d2ce0f35abc2ac4ee6297b7ac038d857893cee7;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 8bbab4afb..05fbb790a 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