cvs commit: fptools/libraries Makefile fptools/libraries/process
Makefile package.conf.in prologue.txt
fptools/libraries/process/System Process.hsc
fptools/libraries/process/System/Process
Internals.hs fptools/libraries/process/cbits anonPipe.c ...
Simon Marlow
simonmar at haskell.org
Tue Sep 28 11:26:09 EDT 2004
simonmar 2004/09/28 08:26:08 PDT
Modified files:
libraries Makefile
Added files:
libraries/process Makefile package.conf.in prologue.txt
libraries/process/System Process.hsc
libraries/process/System/Process Internals.hs
libraries/process/cbits anonPipe.c
libraries/process/include HsProcess.h
Log:
Add the new System.Process library.
The API has changed slightly from the one I submitted for review on
libraries at haskell.org recently:
- runProcess and runInteractiveProcess now take an optional
current directory in which to start the new process.
- new function: getProcessExitCode, a non-blocking version of
waitForProcess.
- new function: terminateProcess. Probably not terribly useful.
What's more, I added some of the signal processing that system() does,
namely resetting SIGINT and SIGQUIT in the child (as requested by Glyn
Clemments - see comments in the source).
ToDo: System.Cmd should really be implemented on top of this, and we
could delete some code. However I've chickened out for the time being
because that would cause haskell98 to depend on process, and hence
also unix/win32. Using stuff from System.Posix/System.Win32 in here
is the Right Thing - at some point we're going to have to bite this
bullet.
Revision Changes Path
1.39 +6 -0 fptools/libraries/Makefile
More information about the Cvs-libraries
mailing list