source: scripts/patches/bash-3.0-avoid_WCONTINUED-1.patch@ 75bc092

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 75bc092 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100644
File size: 1.3 KB
  • bash-3.0

    Submitted By: Jeremy Utley <jeremy@linuxfromscratch.org>
    Date: 2004-10-13
    Initial Package Version: 3.0
    Upstream Status: Submitted Upstream
    Origin: Originally created by Greg Schafer
    Description: Bash-3.0 has a execution problem with newer Glibc's.  This patch,
    submitted to bash-bugs by Tim Waugh, fixes the problem.  See:
    http://lists.gnu.org/archive/html/bug-bash/2004-09/msg00081.html
    Patch also contains a slight code change taken from Fedora SRPM.
    
    
    diff -Naur bash-3.0.orig/jobs.c bash-3.0/jobs.c
    old new  
    24762476  PROCESS *child;
    24772477  pid_t pid;
    24782478  int call_set_current, last_stopped_job, job, children_exited, waitpid_flags;
     2479  static int wcontinued_not_supported = 0;
    24792480
    24802481  call_set_current = children_exited = 0;
    24812482  last_stopped_job = NO_JOB;
     
    24892490                        : 0;
    24902491      if (sigchld || block == 0)
    24912492        waitpid_flags |= WNOHANG;
     2493    retry:
     2494      if (wcontinued_not_supported)
     2495        waitpid_flags &= ~WCONTINUED;
    24922496      pid = WAITPID (-1, &status, waitpid_flags);
     2497      if (pid == -1 && errno == EINVAL)
     2498        {
     2499          wcontinued_not_supported = 1;
     2500          goto retry;
     2501        }
    24932502
    24942503      /* The check for WNOHANG is to make sure we decrement sigchld only
    24952504         if it was non-zero before we called waitpid. */
Note: See TracBrowser for help on using the repository browser.