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:58:10 +0100 |
commit | b033047970a7bb7e9e17c6e38ce5107daf704a7a (patch) | |
tree | 29ad98bc52c52922c8e840d02d294d6712c5e0b0 | |
parent | d9d83d455a5b67fcce030c56fbd8de921dc3fa6d (diff) | |
download | vte-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |