]> git.pld-linux.org Git - packages/bash.git/commitdiff
- makes bash work on 2.4 with new glibc (WCONTINUED is unhandled by 2.4)
authorhavner <havner@pld-linux.org>
Fri, 18 Feb 2005 13:14:43 +0000 (13:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bash-WCONTINUED.patch -> 1.1

bash-WCONTINUED.patch [new file with mode: 0644]

diff --git a/bash-WCONTINUED.patch b/bash-WCONTINUED.patch
new file mode 100644 (file)
index 0000000..a51901e
--- /dev/null
@@ -0,0 +1,26 @@
+--- bash-3.0/jobs.c.jobs        2004-09-08 16:07:25.081427747 +0100
++++ bash-3.0/jobs.c     2004-09-08 16:18:06.698604033 +0100
+@@ -2475,6 +2475,7 @@
+   PROCESS *child;
+   pid_t pid;
+   int call_set_current, last_stopped_job, job, children_exited, waitpid_flags;
++  static int wcontinued_not_supported = 0;
+   call_set_current = children_exited = 0;
+   last_stopped_job = NO_JOB;
+@@ -2488,7 +2489,15 @@
+                        : 0;
+       if (sigchld || block == 0)
+       waitpid_flags |= WNOHANG;
++      retry:
++      if (wcontinued_not_supported)
++      waitpid_flags &= ~WCONTINUED;
+       pid = WAITPID (-1, &status, waitpid_flags);
++      if (errno == EINVAL)
++      {
++        wcontinued_not_supported = 1;
++        goto retry;
++      }
+        /* The check for WNOHANG is to make sure we decrement sigchld only
+         if it was non-zero before we called waitpid. */
This page took 0.104041 seconds and 4 git commands to generate.