diff options
author | Debarshi Ray <debarshir@gnome.org> | 2014-12-04 16:46:00 +0100 |
---|---|---|
committer | Egmont Koblinger <egmont@gmail.com> | 2014-12-04 21:55:28 +0100 |
commit | 5f19e0b08cb06c76d989592e1a859ac3a23b8b4b (patch) | |
tree | 5b007e69c218d06e4bb1ea76094c88b4729dbc23 | |
parent | 38e10d6db707a4e602afe97e059f5e4d20aef7a6 (diff) | |
download | vte-5f19e0b08cb06c76d989592e1a859ac3a23b8b4b.tar.gz |
widget: Reap only when a child is present
https://bugzilla.gnome.org/show_bug.cgi?id=740929
-rw-r--r-- | src/vte.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -8455,11 +8455,11 @@ vte_terminal_finalize(GObject *object) if (terminal->pvt->child_watch_source != 0) { g_source_remove (terminal->pvt->child_watch_source); terminal->pvt->child_watch_source = 0; + g_child_watch_add_full(G_PRIORITY_HIGH, + terminal->pvt->pty_pid, + (GChildWatchFunc)vte_terminal_child_watch_cb, + NULL, NULL); } - g_child_watch_add_full(G_PRIORITY_HIGH, - terminal->pvt->pty_pid, - (GChildWatchFunc)vte_terminal_child_watch_cb, - NULL, NULL); /* Stop processing input. */ vte_terminal_stop_processing (terminal); |