Terminal.watchChild

void watchChild(glib.types.Pid childPid)

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.Terminal.setPty]. When the child exits, the terminal's #VtePty will be set to null.

Note

[glib.global.childWatchAdd] or [glib.global.childWatchAddFull] must not have

been called for child_pid, nor a #GSource for it been created with [glib.global.childWatchSourceNew].

Note: when using the [glib.global.spawnAsync] family of functions, the G_SPAWN_DO_NOT_REAP_CHILD flag MUST have been passed.

Parameters

childPida #GPid