local-grantpt
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Thu, 31 Oct 2019 22:31:12 +0000 (22:31 +0000)
committerSamuel Thibault <sthibault@debian.org>
Thu, 31 Oct 2019 22:31:12 +0000 (22:31 +0000)
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