local-grantpt
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Wed, 5 Dec 2018 18:50:21 +0000 (18:50 +0000)
committerAurelien Jarno <aurel32@debian.org>
Wed, 5 Dec 2018 18:50:21 +0000 (18:50 +0000)
Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name local-grantpt.diff

sysdeps/unix/grantpt.c

index 9d851a4e14fb6d98bde16fa7603b6affd52d297a..7ef418feaf966e509e995df7bd4b65c4ebc4cd2e 100644 (file)
@@ -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