initial commit
[glibc.git] / debian / patches / kfreebsd / local-grantpt.diff
1 ---
2 sysdeps/unix/grantpt.c | 6 +++++-
3 1 file changed, 5 insertions(+), 1 deletion(-)
4
5 --- a/sysdeps/unix/grantpt.c
6 +++ b/sysdeps/unix/grantpt.c
7 @@ -201,9 +201,13 @@
8 else
9 {
10 int w;
11 -
12 +retry:
13 if (__waitpid (pid, &w, 0) == -1)
14 + {
15 + if (errno == EINTR)
16 + goto retry;
17 goto cleanup;
18 + };
19 if (!WIFEXITED (w))
20 __set_errno (ENOEXEC);
21 else