Constructors
CreateProcesscmdspec :: CmdSpecExecutable & arguments, or shell command. If cwd is Nothing, relative paths are resolved with respect to the current working directory. If cwd is provided, it is implementation-dependent whether relative paths are resolved with respect to cwd or the current working directory, so absolute paths should be used to ensure portability.
cwd :: Maybe FilePathOptional path to the working directory for the new process
env :: Maybe [(String, String)]Optional environment (otherwise inherit from the current process)
std_in :: StdStreamHow to determine stdin
std_out :: StdStreamHow to determine stdout
std_err :: StdStreamHow to determine stderr XXX verify what happens with fds in nodejs child processes
close_fds :: BoolClose all file descriptors except stdin, stdout and stderr in the new process (on Windows, only works if std_in, std_out, and std_err are all Inherit). This implementation will call close on every fd from 3 to the maximum of open files, which can be slow for high maximum of open files.
create_group :: BoolCreate a new process group. On JavaScript this also creates a new session.
delegate_ctlc :: BoolDelegate control-C handling. Use this for interactive console processes to let them handle control-C themselves (see below for details).
detach_console :: BoolUse the windows DETACHED_PROCESS flag when creating the process; does nothing on other platforms.
create_new_console :: BoolUse the windows CREATE_NEW_CONSOLE flag when creating the process; does nothing on other platforms.
Default:
Falsenew_session :: BoolUse posix setsid to start the new process in a new session; starts process in a new session on JavaScript; does nothing on other platforms.
child_group :: Maybe GroupIDUse posix setgid to set child process's group id; works for JavaScript when system running nodejs is posix. does nothing on other platforms.
Default:
Nothingchild_user :: Maybe UserIDUse posix setuid to set child process's user id; works for JavaScript when system running nodejs is posix. does nothing on other platforms.
Default:
Nothinguse_process_jobs :: BoolOn Windows systems this flag indicates that we should wait for the entire process tree to finish before unblocking. On POSIX systems this flag is ignored. See $exec-on-windows for details.
Default:
False
Instances2Eq, Show
Eq CreateProcessDefined in process-1.6.26.1 · System.Process.CommonShow CreateProcessDefined in process-1.6.26.1 · System.Process.Common