Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2001 15:00:46 +0200
From:      Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
To:        freebsd-hackers@freebsd.org
Subject:   Re: [Patch?] signal(SIGCHLD, SIG_IGN) is against SUSv2
Message-ID:  <20010607150046.A17132@dcse.fee.vutbr.cz>
In-Reply-To: <20010607143050.A13932@dcse.fee.vutbr.cz>; from cejkar@dcse.fee.vutbr.cz on Thu, Jun 07, 2001 at 02:30:50PM %2B0200
References:  <20010607143050.A13932@dcse.fee.vutbr.cz>

next in thread | previous in thread | raw e-mail | index | archive | help

Oops, kid's bugs. Thanks to David Malone ;-)

Cejka Rudolf wrote (2001/06/07):
> "if (ps->ps_sigact[_SIG_IDX(SIGCHLD)] = SIG_IGN)" is unnecessary.
					^
					==
> --- sys/kern/kern_sig.c.orig	Wed Jun  6 11:52:37 2001
> +++ sys/kern/kern_sig.c	Thu Jun  7 11:57:45 2001
> @@ -438,6 +438,8 @@
>  	 * Reset no zombies if child dies flag as Solaris does.
>  	 */
>  	p->p_procsig->ps_flag &= ~PS_NOCLDWAIT;
> +	if (ps->ps_sigact[_SIG_IDX(SIGCHLD)] = SIG_IGN)
					     ^
					     ==
> +		ps->ps_sigact[_SIG_IDX(SIGCHLD)] = SIG_DFL;
>  }
>  
>  /*

-- 
Rudolf Cejka   (cejkar@dcse.fee.vutbr.cz;  http://www.fee.vutbr.cz/~cejkar)
Brno University of Technology, Faculty of El. Engineering and Comp. Science
Bozetechova 2, 612 66  Brno, Czech Republic

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010607150046.A17132>