Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
process
Commits
8d9cde77
Commit
8d9cde77
authored
Nov 26, 2014
by
Michael Snoyman
Browse files
Expose createProcess_ and document UseHandle behavior #2
parent
339fb1ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
System/Process.hs
View file @
8d9cde77
...
...
@@ -41,6 +41,7 @@
module
System.Process
(
-- * Running sub-processes
createProcess
,
createProcess_
,
shell
,
proc
,
CreateProcess
(
..
),
CmdSpec
(
..
),
...
...
@@ -179,6 +180,12 @@ To also set the directory in which to run @ls@:
> createProcess (proc "ls" []){ cwd = Just "\home\bob",
> std_out = CreatePipe }
Note that @Handle@s provided for @std_in@, @std_out@, or @std_err@ via the
@UseHandle@ constructor will be closed by calling this function. This is not
always the desired behavior. In cases where you would like to leave the
@Handle@ open after spawning the child process, please use 'createProcess_'
instead.
-}
createProcess
::
CreateProcess
...
...
System/Process/Internals.hs
View file @
8d9cde77
...
...
@@ -222,6 +222,17 @@ data StdStream
-- and newline translation mode (just
-- like @Handle@s created by @openFile@).
-- | This function is almost identical to @createProcess@. The only differences
-- are:
--
-- * @Handle@s provided via @UseHandle@ are not closed automatically.
--
-- * This function takes an extra @String@ argument to be used in creating
-- error messages.
--
-- This function has been available from the @System.Process.Internals@ module
-- for some time, and is part of the @System.Process@ module since version
-- 1.2.1.0.
createProcess_
::
String
-- ^ function name (for error messages)
->
CreateProcess
...
...
changelog.md
View file @
8d9cde77
...
...
@@ -11,6 +11,9 @@
*
With GHC 7.10,
`System.Cmd`
and
`System.Process`
are now
`Safe`
(when compiled with older GHC versions they are just
`Trustworthy`
)
*
Expose
`createProcess_`
function, and document behavior of
`UseHandle`
for
`createProcess`
. See
[
issue #2
](
https://github.com/haskell/process/issues/2
)
.
## 1.2.0.0 *Dec 2013*
*
Update to Cabal 1.10 format
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment