[BusyBox] ash leaving SIGINT ignored
Stewart Brodie
stewart.brodie at pace.co.uk
Fri Apr 18 11:20:45 UTC 2003
Vladimir N. Oleynik wrote:
> Stewart,
>
>> It appears that ash ignores SIGINT (and SIGQUIT) at various points
>> during its
>
>> This is using busybox's init. /bin/login contains:
>>
>> #!/bin/sh
>> exec /bin/sh
>
> try add --login
Didn't make any difference - same set of signals are blocked. If I do:
# trap "echo sig2" 2
# <press ^C>
then I get a newline and the prompt is redisplayed. What is causing that?
Is that the shell actually noticing a SIGINT (if so, how?) and processing
it, or is the shell itself doing something magic to trap the keypress.
Another possibility that occurred to me was that the shell only blocked the
signals whilst it was running another process, in my case "cat
/proc/$$/status" would show the status of the shell process whilst it was
executing the cat command. It's still a problem though if the signals are
ignored by the child process, though. When are the signal masks supposed to
be reset? On fork? On exec?
--Stewart
More information about the busybox
mailing list