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 (as discussed on libraries@haskell.org). - add readProcess / readProcessWithExitCode, originally from Don Stewart's newpopen package. These functions behave 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). - Provide a way to close all the file descriptors in the new process (see #1415) - add a couple more tests for the new features - bump the version to 2.0
Showing
- System/Cmd.hs 1 addition, 120 deletionsSystem/Cmd.hs
- System/Process.hs 340 additions, 114 deletionsSystem/Process.hs
- System/Process/Internals.hs 175 additions, 90 deletionsSystem/Process/Internals.hs
- cbits/runProcess.c 179 additions, 162 deletionscbits/runProcess.c
- configure.ac 2 additions, 2 deletionsconfigure.ac
- include/runProcess.h 10 additions, 11 deletionsinclude/runProcess.h
- process.cabal 1 addition, 1 deletionprocess.cabal
- tests/all.T 5 additions, 0 deletionstests/all.T
- tests/process005.hs 26 additions, 0 deletionstests/process005.hs
- tests/process005.stdin 3 additions, 0 deletionstests/process005.stdin
- tests/process005.stdout 4 additions, 0 deletionstests/process005.stdout
- tests/process006.hs 14 additions, 0 deletionstests/process006.hs
- tests/process006.stderr 1 addition, 0 deletionstests/process006.stderr
- tests/process006.stderr-i386-unknown-mingw32 1 addition, 0 deletionstests/process006.stderr-i386-unknown-mingw32
- tests/process006.stdout 4 additions, 0 deletionstests/process006.stdout
- tests/process006.stdout-i386-unknown-mingw32 5 additions, 0 deletionstests/process006.stdout-i386-unknown-mingw32
- tests/process007.hs 26 additions, 0 deletionstests/process007.hs
- tests/process007.stdout 2 additions, 0 deletionstests/process007.stdout
- tests/process008.hs 7 additions, 0 deletionstests/process008.hs
- tests/process008.stdout 2 additions, 0 deletionstests/process008.stdout
Loading
Please register or sign in to comment