[GHC] #2233: Overhaul System.Process
GHC
ghc-devs at haskell.org
Sat Nov 30 23:03:30 UTC 2013
#2233: Overhaul System.Process
--------------------------------------+------------------------------------
Reporter: simonmar | Owner: simonmar
Type: task | Status: patch
Priority: normal | Milestone: _|_
Component: libraries/process | Version: 6.8.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
--------------------------------------+------------------------------------
Comment (by Herbert Valerio Riedel <hvr@…>):
In [changeset:"b601209456e13ca3d08faffb7e6771bcb8c1b1b4/process"]:
{{{
#!CommitTicketReference repository="process"
revision="b601209456e13ca3d08faffb7e6771bcb8c1b1b4"
All new sync process functions now terminate on an exception (#2233)
Now all the functions that call a process synchronously have the same
behaviour. Previously just readProcess, readProcessWithExitCode did
this, now callProcess and callCommand do too.
If a thread running one of these functions gets an exception, including
async exceptions (such as from timeout or killThread), then the
external process gets terminated.
Introduce a helper function to implement this behaviour. Currently it
is not exposed to users, but that could be changed easily.
Authored-by: Duncan Coutts <duncan at well-typed.com>
Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/2233#comment:24>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list