File ksh93-sigchld.dif of Package ksh

cc:  gsf@research.att.com zpetrova@novell.com
Subject:  Re: [ast-users] Bug in SIGCHLD handling (Version JM 93t+ 2010-02-14)
--------

I was finally able to reproduce the problem and I have fixed the bug.

Here is a patch.  Let me know if this resolves this.

====================cut here==========================
*** src/cmd/ksh93/sh/xec.c	Fri Feb 12 11:48:56 2010
--- src/cmd/ksh93/sh/xec.c	Wed Apr  7 10:40:53 2010
***************
*** 2946,2951 ****
--- 2946,2953 ----
  	register int sig=sh.st.trapmax;
  	while(sig-- > 0)
  	{
+ 		if(sig==SIGCHLD)
+ 			continue;
  		if((trap=sh.st.trapcom[sig]) && *trap==0)
  			signal(sig,mode?sh_fault:SIG_IGN);
  	}
====================cut here==========================

David Korn
dgk@research.att.com
openSUSE Build Service is sponsored by