public uint add_full (int priority, Pid pid, owned ChildWatchFunc function)
Sets a function to be called when the child indicated by
pid exits, at the priority
In many programs, you will want to call check_exit_status in the callback to determine whether or not the child exited successfully.
Also, note that on platforms where Pid must be explicitly closed (see
pid must not be closed while the source is still
active. Typically, you should invoke close_pid in the callback function for
GLib supports only a single callback per process id. On POSIX platforms, the same restrictions mentioned for ChildWatchSource apply to this function.
process to watch. On POSIX the positive pid of a child process. On Windows a handle for a process (which doesn't have to be a child).
function to call
data to pass to
function to call when the idle is removed, or null
the ID (greater than 0) of the event source.