ctrl-c doesn't work but ctrl-z is ok in telnet
Denis Vlasenko
vda.linux at googlemail.com
Fri Jun 22 11:44:00 UTC 2007
On Friday 22 June 2007 05:35, Bin Chen wrote:
> A little update for this problem, I wrote a propram to test the CTRL-C
> signal, I found if I call:
>
> signal(SIGINT, handler);
>
> in main(), then the program can get the SIGINT when I press CTRL-C, but
> if I comment out this line, the SIGINT can't cause the program exit.
>
> I think this is caused by the default SIGINT processing logic inherited
> from the busybox shell, right? In older busybox version we didn't
> encounter this before, so maybe the reason is the default processing
> logic for SIGINT in older busybox shell is exit.
>
> Will a program started from shell inherit the signal processing
> properties from the shell?
I am unable to reproduce it on current svn.
--
vda
More information about the busybox
mailing list