[GHC] #2233: Overhaul System.Process
GHC
trac at galois.com
Tue Apr 22 18:12:49 EDT 2008
#2233: Overhaul System.Process
----------------------------------+-----------------------------------------
Reporter: simonmar | Owner:
Type: proposal | Status: new
Priority: normal | Milestone: Not GHC
Component: libraries/process | Version: 6.8.2
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Architecture: Unknown | Os: Unknown
----------------------------------+-----------------------------------------
== Overhaul of System.Process ==
From the patch:
{{{
Tue Apr 22 15:02:16 PDT 2008 Simon Marlow <simonmarhaskell at gmail.com>
* Overhall System.Process
- fix #1780: pipes created by runInteractiveProcess are set
close-on-exec by default
- add a new, more general, form of process creation: createProcess
Each of stdin, stdout and stderr may individually be taken
from existing Handles or attached to new pipes. Also it
has a nicer API.
- add readProcess from Don Stewart's newpopen package. This
function behaves like C's popen().
- Move System.Cmd.{system,rawSystem} into System.Process. Later
we can depecate System.Cmd.
- Don't use O_NONBLOCK for pipes, as it can confuse the process
attached to the pipe (requires a fix to GHC.Handle in the base
package).
- move the tests from the GHC testsuite into the package itself,
and add a couple more
- bump the version to 2.0
}}}
Haddock for the new API is here:
[http://darcs.haskell.org/~simonmar/process/System-Process.html]
Patch is attached. So far I've only modified the Unix parts of the code,
the Windows parts still need to be updated.
Discussion period: 4 weeks (20 May)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2233>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list