source:
scripts/patches/bash-3.0-avoid_WCONTINUED-1.patch@
dc227cd
Last change on this file since dc227cd was 7f65c0e, checked in by , 19 years ago | |
---|---|
|
|
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 2476 2476 PROCESS *child; 2477 2477 pid_t pid; 2478 2478 int call_set_current, last_stopped_job, job, children_exited, waitpid_flags; 2479 static int wcontinued_not_supported = 0; 2479 2480 2480 2481 call_set_current = children_exited = 0; 2481 2482 last_stopped_job = NO_JOB; … … 2489 2490 : 0; 2490 2491 if (sigchld || block == 0) 2491 2492 waitpid_flags |= WNOHANG; 2493 retry: 2494 if (wcontinued_not_supported) 2495 waitpid_flags &= ~WCONTINUED; 2492 2496 pid = WAITPID (-1, &status, waitpid_flags); 2497 if (pid == -1 && errno == EINVAL) 2498 { 2499 wcontinued_not_supported = 1; 2500 goto retry; 2501 } 2493 2502 2494 2503 /* The check for WNOHANG is to make sure we decrement sigchld only 2495 2504 if it was non-zero before we called waitpid. */
Note:
See TracBrowser
for help on using the repository browser.