Re: Closing XTerm causes the GTK app to exit, inspite of disown/nohup on its PID - why?
- From: James Cameron <quozl laptop org>
- To: gtk-list gnome org
- Subject: Re: Closing XTerm causes the GTK app to exit, inspite of disown/nohup on its PID - why?
- Date: Wed, 6 Mar 2019 12:23:17 +1100
Wild guess; use strace to look for a signal at the time the window is
closed, and add code to replace the handler for the signal.
For instance, to handle Ctrl+C gracefully in Python that uses GTK,
some of my code does this;
GLib.unix_signal_add(GLib.PRIORITY_DEFAULT, signal.SIGINT, callback)
--
James Cameron
http://quozl.netrek.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]