local-grantpt
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Mon, 11 May 2020 00:04:03 +0000 (01:04 +0100)
committerSamuel Thibault <sthibault@debian.org>
Mon, 11 May 2020 00:04:03 +0000 (01:04 +0100)
Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name local-grantpt.diff

sysdeps/unix/grantpt.c

index 3214ab06de5512a22543382300de7844c53450fe..f381c1b2a01bdfd8b741138f6b56e285dc3f9b76 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