how to exit dbus-monitor

  • Thread starter Thread starter Charles T Smith
  • Start date Start date
C

Charles T Smith

Does anyone know how to get out of dbus-monitor, and why is control-c
blocked?
 
Charles said:
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
 
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.

I couldn't find any documentation on it.
 
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.
 
Back
Top