Commit b0330479 authored by Debarshi Ray's avatar Debarshi Ray Committed by Egmont Koblinger

widget: Reap only when a child is present

https://bugzilla.gnome.org/show_bug.cgi?id=740929
(cherry picked from commit 5f19e0b0)
parent d9d83d45
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment