You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Define some missing types for Windows compatibility. Note that these values
74
80
-- will never actually be used, as the setuid/setgid system calls are not
75
81
-- applicable on Windows. No value of this type will ever exist.
@@ -80,16 +86,15 @@ type UserID = CGid
80
86
#else
81
87
typePHANDLE=CPid
82
88
#endif
83
-
84
89
dataCreateProcess=CreateProcess{
85
90
cmdspec::CmdSpec, --^ Executable & 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.
86
91
cwd::MaybeFilePath, --^ Optional path to the working directory for the new process
87
92
env::Maybe [(String,String)], --^ Optional environment (otherwise inherit from the current process)
88
93
std_in::StdStream, --^ How to determine stdin
89
94
std_out::StdStream, --^ How to determine stdout
90
95
std_err::StdStream, --^ How to determine stderr
91
-
close_fds::Bool, --^ Close 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.
92
-
create_group::Bool, --^ Create a new process group
96
+
close_fds::Bool, --^ Close 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. XXX verify what happens with fds in nodejs child processes
97
+
create_group::Bool, --^ Create a new process group. On JavaScript this also creates a new session.
93
98
delegate_ctlc::Bool, --^ Delegate control-C handling. Use this for interactive console processes to let them handle control-C themselves (see below for details).
94
99
--
95
100
-- @since 1.2.0.0
@@ -101,15 +106,15 @@ data CreateProcess = CreateProcess{
101
106
-- Default: @False@
102
107
--
103
108
-- @since 1.3.0.0
104
-
new_session::Bool, --^ Use posix setsid to start the new process in a new session; does nothing on other platforms.
109
+
new_session::Bool, --^ Use posix setsid to start the new process in a new session; starts process in a new session on JavaScript; does nothing on other platforms.
105
110
--
106
111
-- @since 1.3.0.0
107
-
child_group::MaybeGroupID, --^ Use posix setgid to set child process's group id; does nothing on other platforms.
112
+
child_group::MaybeGroupID, --^ Use posix setgid to set child process's group id; works for JavaScript when system running nodejs is posix. does nothing on other platforms.
108
113
--
109
114
-- Default: @Nothing@
110
115
--
111
116
-- @since 1.4.0.0
112
-
child_user::MaybeUserID, --^ Use posix setuid to set child process's user id; does nothing on other platforms.
117
+
child_user::MaybeUserID, --^ Use posix setuid to set child process's user id; works for JavaScript when system running nodejs is posix. does nothing on other platforms.
0 commit comments