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:58:10 +0100
commitb033047970a7bb7e9e17c6e38ce5107daf704a7a (patch)
tree29ad98bc52c52922c8e840d02d294d6712c5e0b0
parentd9d83d455a5b67fcce030c56fbd8de921dc3fa6d (diff)
downloadvte-0.38.3.tar.gz
widget: Reap only when a child is present0.38.3
https://bugzilla.gnome.org/show_bug.cgi?id=740929 (cherry picked from commit 5f19e0b08cb06c76d989592e1a859ac3a23b8b4b)
-rw-r--r--src/vte.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vte.c b/src/vte.c
index e5149c9c..5919416e 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -8426,11 +8426,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);