Watches @child_pid. When the process exists, the #VteTerminal::child-exited
signal will be called with the child's exit status.
Prior to calling this function, a #VtePty must have been set in @terminal
using vte_terminal_set_pty().
When the child exits, the terminal's #VtePty will be set to %NULL.
Note: g_child_watch_add() or g_child_watch_add_full() must not have
been called for @child_pid, nor a #GSource for it been created with
g_child_watch_source_new().
Note: when using the g_spawn_async() family of functions,
the %G_SPAWN_DO_NOT_REAP_CHILD flag MUST have been passed.
Watches @child_pid. When the process exists, the #VteTerminal::child-exited signal will be called with the child's exit status.
Prior to calling this function, a #VtePty must have been set in @terminal using vte_terminal_set_pty(). When the child exits, the terminal's #VtePty will be set to %NULL.
Note: g_child_watch_add() or g_child_watch_add_full() must not have been called for @child_pid, nor a #GSource for it been created with g_child_watch_source_new().
Note: when using the g_spawn_async() family of functions, the %G_SPAWN_DO_NOT_REAP_CHILD flag MUST have been passed.