Terminal.watchChild

Watches child_pid. When the process exists, the child-exited signal will be called with the child's exit status.

Prior to calling this function, a vte.Pty must have been set in terminal using Terminal.setPty. When the child exits, the terminal's vte.Pty 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 glib.Source for it been created with g_child_watch_source_new().

Note: when using the Spawn.async family of functions, the G_SPAWN_DO_NOT_REAP_CHILD flag MUST have been passed.

class Terminal
void
watchChild

Parameters

childPid GPid