From 51bfb4eb18c7a2b9ea257bad3cf4e11c8329d2df Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Thu, 15 Aug 2024 11:10:46 +0200 Subject: [PATCH] local-grantpt Gbp-Pq: Topic kfreebsd Gbp-Pq: Name local-grantpt.diff --- sysdeps/unix/grantpt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sysdeps/unix/grantpt.c b/sysdeps/unix/grantpt.c index 1c1cc2c3c..6c95d5ee4 100644 --- a/sysdeps/unix/grantpt.c +++ b/sysdeps/unix/grantpt.c @@ -218,9 +218,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 -- 2.30.2