local-grantpt
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)
committerSean Whitton <spwhitton@spwhitton.name>
Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)
Gbp-Pq: Topic kfreebsd
Gbp-Pq: Name local-grantpt.diff

sysdeps/unix/grantpt.c

index aa741eebd638522236a14d6dba45b3267e572244..446048373ca8d4b7b675d7c8d6de1c3894667af6 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