Parameters: | loop (Loop) – loop object where this handle runs (accessible through Check.loop). |
---|
Process handles allow spawning child processes which can be controlled (their stdin and stdout) with Pipe handles within an event loop.
Disables inheritance for file descriptors / handles that this process inherited from its parent. The effect is that child processes spawned by this process don’t accidentally inherit these handles.
It is recommended to call this function as early in your program as possible, before the inherited file descriptors can be closed or duplicated.
Note that this function works on a best-effort basis: there is no guarantee that libuv can discover all file descriptors that were inherited. In general it does a better job on Windows than it does on unix.
Parameters: |
|
---|
Spawn the specified child process.
Exit callback signature: callback(process_handle, exit_status, term_signal).
Parameters: | signal (int) – Signal to be sent to the process. |
---|
Send the specified signal to the child process.
Read only
PID of the spawned process.
Parameters: |
|
---|
Create a new container for passing stdio to a child process. Stream can be any stream object, that is TCP, Pipe or TTY. An arbitrary file descriptor can be passed by setting the fd parameter.
The operation mode is selected by setting the flags parameter: