bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: On solaris, a SIGINT sent to a child process of Korn Shell kills the


From: Paul Eggert
Subject: Re: On solaris, a SIGINT sent to a child process of Korn Shell kills the shell itself
Date: Mon, 12 Sep 2011 12:46:49 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110831 Fedora/3.1.12-2.fc14 Thunderbird/3.1.12

On 09/12/11 11:17, Stefano Lattarini wrote:
> this is due to the fact
> that the Debian korn shell is apparently killing itself (yikes!) with the
> same signal that killed the child process:

That's actually a fairly standard trick, one that I've seen in
other programs.  The idea is that the invoking process should
exit with the same status as the invoked process,
even if the invoked process failed due to a signal.
So my current guess is that that's why the Korn shell is
doing what it's doing.

It's just that this trick doesn't work for the shell itself,
at least, it doesn't always work in the presence of traps.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]