console owner not catching SIGINT's on 0.5.0?
Garrett Cooper
yanegomi at gmail.com
Tue Aug 25 21:46:01 BST 2009
On Tue, Aug 25, 2009 at 11:14 AM, Scott James Remnant<scott at netsplit.com> wrote:
> On Tue, 2009-08-25 at 10:56 -0700, Garrett Cooper wrote:
>
>> [172:~]$ start console_owner
>> [172:~]$ [owner] This is SPARTA!
>> Hit CTRL-C now!
>>
> Err, just to confirm, are you running the shell on the console?
>
> If that has job control enabled, then it'll already be the console owner
> and your test program won't gain ownership.
>
> So the ^C will go to bash, not SPARTA!
Ok, good question/point. Is there any way to kill job control without
killing bash (maybe respawn bash without the -i option?).
Anyhow, just to alleviate any and all possible concerns about the
shell, I killed agetty so it wasn't running bash at all on the serial
console. Unfortunately it's still not registering the input in the
python app :(...
[172:~]$ [owner] This is SPARTA!
Hit CTRL-C now!
# Stuck again, no output is registered.
Any other ideas? I know that this functionality does in fact work for
another app that we have, but I'm not sure why it doesn't work for
this test app 100%... I even uncommented the os.open for /dev/ttyS0,
so the test app does in fact have R/W access to the serial console,
and it still doesn't work. Hmmmm...
Thanks,
-Garrett
More information about the upstart-devel
mailing list