File: local-grantpt.diff

package info (click to toggle)
glibc 2.36-9%2Bdeb12u13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-proposed-updates
  • size: 300,148 kB
  • sloc: ansic: 1,055,755; asm: 324,942; makefile: 15,198; python: 12,603; sh: 10,884; cpp: 5,685; awk: 1,883; perl: 518; yacc: 292; pascal: 182; sed: 39
file content (21 lines) | stat: -rw-r--r-- 381 bytes parent folder | download | duplicates (34)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
 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