- public SignalHandlerFunc @signal (ProcessSignal signum, SignalHandlerFunc handler)
Sets the error handler for signal sig.
- public void abort ()
Causes abnormal program termination unless
ABRT is being caught by a signal handler passed to signal and the
handler does not return.
- public bool check_exit_status (int wait_status) throws Error
- public bool check_wait_status (int wait_status) throws Error
Set throws if wait_status
indicates the child exited abnormally (e.
- public void close_pid (Pid pid)
On some platforms, notably Windows, the
Pid type represents a resource which must be closed to prevent resource leaking.
- public bool core_dump (int status)
Returns true if the child process exited and triggered a core dump
- public void exit (int status)
Causes normal program termination to occur.
- public int exit_status (int status)
Returns the exit status if the process exited
- public bool if_continued (int status)
Returns true if the status was returned for a child process that has
continued.
- public bool if_exited (int status)
Returns true if the child process terminated normally
- public bool if_signaled (int status)
Returns true if the child process terminated because of an unhalded signal.
- public bool if_stopped (int status)
Returns a true if the child process stopped.
- public int raise (ProcessSignal sig)
Sends signal sig to the program.
- public bool spawn_async (string? working_directory, string[] argv, string[]? envp, SpawnFlags _flags, SpawnChildSetupFunc? child_setup, out Pid child_pid) throws SpawnError
Executes a child program asynchronously.
- public bool spawn_async_with_fds (string? working_directory, string[] argv, string[]? envp, SpawnFlags _flags, SpawnChildSetupFunc? child_setup, out Pid child_pid = null, int stdin_fd = -1, int stdout_fd = -1, int stderr_fd = -1) throws SpawnError
Executes a child program asynchronously.
- public bool spawn_async_with_pipes (string? working_directory, string[] argv, string[]? envp, SpawnFlags _flags, SpawnChildSetupFunc? child_setup, out Pid child_pid, out int standard_input = null, out int standard_output = null, out int standard_error = null) throws SpawnError
- public bool spawn_async_with_pipes_and_fds (string? working_directory, string[] argv, string[]? envp, SpawnFlags _flags, SpawnChildSetupFunc? child_setup, int stdin_fd, int stdout_fd, int stderr_fd, int[] source_fds, int[] target_fds, out Pid child_pid, out int standard_input = null, out int standard_output = null, out int standard_error = null) throws SpawnError
Executes a child program asynchronously (your program will not block waiting
for the child to exit).
- public bool spawn_command_line_async (string command_line) throws SpawnError
- public bool spawn_command_line_sync (string command_line, out string standard_output = null, out string standard_error = null, out int wait_status = null) throws SpawnError
A simple version of
spawn_sync with little-used parameters removed, taking a command line
instead of an argument vector.
- public bool spawn_sync (string? working_directory, string[] argv, string[]? envp, SpawnFlags _flags, SpawnChildSetupFunc? child_setup, out string standard_output = null, out string standard_error = null, out int wait_status = null) throws SpawnError
Executes a child synchronously (waits for the child to exit before returning
).
- public ProcessSignal stop_sig (int status)
- public ProcessSignal term_sig (int status)
Returns the ID of the signal that forced the child process to terminate.