[Bug 189] ash behaves strangely on CTRL-C (does not exit but fills process table)

bugzilla at busybox.net bugzilla at busybox.net
Wed Mar 18 09:53:51 UTC 2009


https://bugs.busybox.net/show_bug.cgi?id=189





--- Comment #3 from Ronald Wahl <ronald.wahl at raritan.com>  2009-03-18 09:53:50 UTC ---
Your .config shows the same problem (had to remove the cross prefix - i just
built it native against glibc). My .config is the default config (make
menuconfig and just save).

But I have just noticed that this bug is a race condition because in some cases
it works. So probably you need to try just harder...

Meanwhile I know even a bit more:

The working case looks like this:

- SIGINT is received
- onsig() is called
- raise_interrupt() is called
- we kill ourself there with SIGINT
- shell finishes

The broken case looks like this:

- SIGINT received
- onsig() is called
- dotrap() is called (dunno why) which resets gotsig[SIGINT - 1]
- raise_interrupt() is called
- SIGINT check fails because it was reset in dotrap()
- shell does NOT finish

So the question is why dotrap() is called in the broken case.


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list