Terminal.watchChild

Watches child_pid. When the process exists, the "child-exited" signal will be called. Use vte_terminal_get_child_exit_status() to retrieve the child's exit status. Prior to calling this function, a VtePty must have been set in terminal using vte_terminal_set_pty_object(). 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.

class Terminal
void
watchChild

Parameters

childPid GPid

a GPid Since 0.26

Meta