2009-01-20 10:06:02 CTRL+C killing backgrounded process?
Michael McTernan (UNITED KINGDOM)
Message: 68152
Hi,
I'm using 2008R.15 and I think I'm seeing this bug: https://blackfin.uclinux.org/gf/tracker/1031
The symptom is that sometimes when I ctrl-c a process at the serial console, one of the backgrounded processes exits.
It's no big deal to fix the apps to call setsid(), but I'd like to confirm that it is this bug and not something else.
How can I find the process leaders of a process on uClinux? Busybox ps doesn't do it, sysuntils ps doesn't, procps ps doesn't build, pstree is missing and I don' think it's contained in /proc/pid/stat.
Kind Regards,
Mike
QuoteReplyEditDelete
2009-01-20 10:13:53 Re: CTRL+C killing backgrounded process?
Mike Frysinger (UNITED STATES)
Message: 68153
yes, you're hitting bug 1031. the 2008R1.5 release is like busybox-1.4.x which has the bug.
QuoteReplyEditDelete
2009-01-23 15:28:53 Re: CTRL+C killing backgrounded process?
Michael McTernan (UNITED KINGDOM)
Message: 68306
Yup - I added a setsid() a couple of days ago and not seen the problem since.
Thanks for helping confirm this.
Mike
QuoteReplyEditDelete
2009-01-23 15:44:51 Re: CTRL+C killing backgrounded process?
Mike Frysinger (UNITED STATES)
Message: 68307
be aware that the original fix i added (setsid()) broke some other cases. like one app running system() on an interactive program. but if that scenario doesnt apply to you, dont worry about it.