Roman Rakus 9c230e
			     BASH PATCH REPORT
Roman Rakus 9c230e
			     =================
Roman Rakus 9c230e
Roman Rakus 9c230e
Bash-Release:	4.1
Roman Rakus 9c230e
Patch-ID:	bash41-009
Roman Rakus 9c230e
Roman Rakus 9c230e
Bug-Reported-by:	Tomas Trnka <tomastrnka@gmx.com>
Roman Rakus 9c230e
Bug-Reference-ID:	<201003242030.02166.tomastrnka@gmx.com>
Roman Rakus 9c230e
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2010-03/msg00090.html
Roman Rakus 9c230e
Roman Rakus 9c230e
Bug-Description:
Roman Rakus 9c230e
Roman Rakus 9c230e
An arriving SIGCHLD will interrupt `slow' system calls such as write(2) to
Roman Rakus 9c230e
or read(2) from a terminal.  This results in an error message and truncated
Roman Rakus 9c230e
input or output.
Roman Rakus 9c230e
Roman Rakus 9c230e
Patch (apply with `patch -p0'):
Roman Rakus 9c230e
Roman Rakus 9c230e
*** ../bash-4.1-patched/sig.c	Fri Aug 14 16:31:52 2009
Roman Rakus 9c230e
--- sig.c	Fri Mar 26 22:34:11 2010
Roman Rakus 9c230e
***************
Roman Rakus 9c230e
*** 655,660 ****
Roman Rakus 9c230e
--- 655,663 ----
Roman Rakus 9c230e
      act.sa_flags |= SA_INTERRUPT;	/* XXX */
Roman Rakus 9c230e
    else
Roman Rakus 9c230e
      act.sa_flags |= SA_RESTART;		/* XXX */
Roman Rakus 9c230e
+ #else
Roman Rakus 9c230e
+   if (sig == SIGCHLD)
Roman Rakus 9c230e
+     act.sa_flags |= SA_RESTART;
Roman Rakus 9c230e
  #endif
Roman Rakus 9c230e
    sigemptyset (&act.sa_mask);
Roman Rakus 9c230e
    sigemptyset (&oact.sa_mask);
Roman Rakus 9c230e
*** ../bash-4.1-patched/patchlevel.h	2009-10-01 16:39:22.000000000 -0400
Roman Rakus 9c230e
--- patchlevel.h	2010-01-14 09:38:08.000000000 -0500
Roman Rakus 9c230e
***************
Roman Rakus 9c230e
*** 26,30 ****
Roman Rakus 9c230e
     looks for to find the patch level (for the sccs version string). */
Roman Rakus 9c230e
  
Roman Rakus 9c230e
! #define PATCHLEVEL 8
Roman Rakus 9c230e
  
Roman Rakus 9c230e
  #endif /* _PATCHLEVEL_H_ */
Roman Rakus 9c230e
--- 26,30 ----
Roman Rakus 9c230e
     looks for to find the patch level (for the sccs version string). */
Roman Rakus 9c230e
  
Roman Rakus 9c230e
! #define PATCHLEVEL 9
Roman Rakus 9c230e
  
Roman Rakus 9c230e
  #endif /* _PATCHLEVEL_H_ */
Roman Rakus 9c230e