Charles T Smith schrieb:
>
> Does anyone know how to get out of dbus-monitor, and why is control-c
> blocked?
>
Don't know why, but try Ctrl+z, then "kill %1". Ctrl+z usually sends SIGSTOP
to the process controlling the terminal and cannot be ignored.
On Sun, 04 Nov 2007 17:47:01 +0100, Jan Kandziora wrote:
> Charles T Smith schrieb:
>>
>> Does anyone know how to get out of dbus-monitor, and why is control-c
>> blocked?
>>
> Don't know why, but try Ctrl+z, then "kill %1". Ctrl+z usually sends
> SIGSTOP to the process controlling the terminal and cannot be ignored.
>
> Kind regards
>
> Jan
Well, ctrl-\ works, too (generating a core-dump). But I was just
wondering what the canonical way to exit was, since ctrl-c was blocked.
There must be some logic there somewhere.
On Nov 4, 8:47 am, Jan Kandziora <j...@gmx.de> wrote:
> Charles T Smith schrieb:
>
> > Does anyone know how to get out of dbus-monitor, and why is control-c
> > blocked?
>
> Don't know why, but try Ctrl+z, then "kill %1". Ctrl+z usually sends SIGSTOP
> to the process controlling the terminal and cannot be ignored.
Nitpick: Actually, it's SIGTSTP, which also stops the process by
default but can be handled or ignored. Also, if the process puts the
terminal in raw mode none of these keys will work, and you have to
figure out something else.
In the case of dbus-monitor, however, it looks like control-c is the
accepted way to exit. It handles SIGINT and sets a flag that causes
it to exit when it returns to the main loop. There is probably some
other bug which keeps it from getting back there. Control-Z does work
in this case since SIGTSTP is not handled.