Subject: Re: Re: [ksh93-integration-discuss] ksh93 - cannot trap SIGQUIT?
--------


> On Mon, Mar 01, 2010 at 11:18:56AM -0500, David Korn wrote:
> > Maybe the shell was started with SIGQUIT set to ignore.
> > 
> > Remember that the shell ignores all signals that are set to ignore
> > at startup.
> 
> 
> What is the rationale for this?  Besides compatibility with the POSIX
> shell.  (I've long wondered about this.)
> 
> Nico


I believe that the rational was related to the behavior of nohup.
A script that did
        trap 'cleanup;exit' 2 1 0
would terminate when run nohup without this if it received the HUP
signal.

David Korn
dgk at research.att.com

Reply via email to