From e50fae168abed1b230783f6038e68353381d2af7 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Tue, 27 May 2025 11:40:04 +0100 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 aa741eebd..446048373 100644 --- a/sysdeps/unix/grantpt.c +++ b/sysdeps/unix/grantpt.c @@ -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 -- 2.30.2