local-grantpt
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)
committerAurelien Jarno <aurel32@debian.org>
Fri, 20 Sep 2019 19:39:03 +0000 (20:39 +0100)
Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name local-grantpt.diff

sysdeps/unix/grantpt.c

index e2e6df14c93916df021a66d04c32660cefde328c..ed928d63d37f15cc4f4cba500fa5d700418f2661 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