From: Jonathan Nieder Date: Tue, 19 Oct 2010 21:07:53 GMT Subject: Re: RFC: [PATCH] ignore SIGINT&QUIT while waiting for external command Message-ID: <20101019210753.GB32029@burratino> In-Reply-To: Jakub Narebski wrote: > Jonathan Nieder writes: >> - sigchain_push(SIGINT, SIG_IGN); >> - sigchain_push(SIGQUIT, SIG_IGN); >> + if (the_child) >> + die("What? _Two_ children?"); >> + the_child = cmd; >> + sigchain_push(SIGINT, interrupted_with_child); >> + sigchain_push(SIGQUIT, interrupted_with_child); > > Please, don't do this. It is almost as bad as error message as > "You don't exist. Go away". Hopefully it was clear that the behavior (erroring out) is as unacceptable as the message.