[PATCH 16/19] telnet: handle SIGINT
Rich Felker
dalias at aerifal.cx
Thu Sep 27 17:52:58 UTC 2012
On Thu, Sep 27, 2012 at 05:22:56PM +0200, Denys Vlasenko wrote:
> On Tue, Sep 25, 2012 at 2:06 PM, Florian Fainelli <florian at alphacore.org> wrote:
> > From: Hasmish Guthrie <hcg at openwrt.org>
> >
> > Default behavior for a non-interactive shell is that SIGINT is processeld
> > locally by the shell (and typically ignored), this runtime environment is
> > inherited by children, hence Ctrl-C has no effect within a telnet session.
> > This patch enables the correct behavior.
>
> Your shell is buggy. It must not pass SIGINT set to SIG_IGN to children.
> Mine does not:
And if a program other than a shell starts external programs with
signals blocked or ignored, it's probably doing so for very good
reason. The invoked program should not attempt to override this
without also having a good reason.
Rich
More information about the busybox
mailing list