local-grantpt
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sun, 14 Jan 2018 10:24:48 +0000 (10:24 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sun, 14 Jan 2018 10:24:48 +0000 (10:24 +0000)
Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name local-grantpt.diff

sysdeps/unix/grantpt.c

index a73020e69a70f07a57cefc277c0f051a488a3290..3a071a7f0e32cd538a97c8375b9c7946515ac26c 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