summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2014-12-04 16:46:00 +0100
committerEgmont Koblinger <egmont@gmail.com>2014-12-04 21:55:28 +0100
commit5f19e0b08cb06c76d989592e1a859ac3a23b8b4b (patch)
tree5b007e69c218d06e4bb1ea76094c88b4729dbc23
parent38e10d6db707a4e602afe97e059f5e4d20aef7a6 (diff)
downloadvte-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vte.c b/src/vte.c
index 57b4bb48..f790a3b1 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -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);