[GHC] #431: runInteractiveProcess and closed stdin.
GHC
ghc-devs at haskell.org
Wed Jan 6 17:26:07 UTC 2016
#431: runInteractiveProcess and closed stdin.
-------------------------------------+-------------------------------------
Reporter: nobody | Owner:
Type: bug | Status: closed
Priority: low | Milestone: ⊥
Component: | Version: 6.4
libraries/process |
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect result | Unknown/Multiple
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: #5761 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Changes (by thomie):
* related: => #5761
Comment:
For reference, this was fixed in the following commits.
https://github.com/haskell/process/commit/4a804c27f2c1a1d2f331006e32229c43750132be:
{{{
Author: simonmar <unknown>
Date: Mon Aug 1 13:23:22 2005 +0000
[project @ 2005-08-01 13:23:22 by simonmar]
Fix
[ ghc-Bugs-1249226 ] runInteractiveProcess and closed stdin.
}}}
https://github.com/haskell/process/commit/9c553822abd15de9c1543820b8d9f070b00fb19f:
{{{
Author: Simon Marlow <simonmar at microsoft.com>
Date: Fri May 23 10:07:40 2008 +0000
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 at 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
}}}
https://github.com/haskell/process/commit/3e6acdd0d9f7a80bbe454d114fb192e0a5a8008b:
{{{
Author: Simon Marlow <marlowsd at gmail.com>
Date: Fri Dec 11 10:05:40 2009 +0000
Add comments re: #431
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/431#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list