---
sysdeps/unix/grantpt.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--- a/sysdeps/unix/grantpt.c
+++ b/sysdeps/unix/grantpt.c
@@ -201,9 +201,13 @@
else
{
int w;
-
+retry:
if (__waitpid (pid, &w, 0) == -1)
+ {
+ if (errno == EINTR)
+ goto retry;
goto cleanup;
+ };
if (!WIFEXITED (w))
__set_errno (ENOEXEC);
else