Ticket #4198 (closed bug: fixed)
waitForProcess fails with "Bad file descriptor"
| Reported by: | yugr | Owned by: | simonmar |
|---|---|---|---|
| Priority: | high | Milestone: | 7.0.1 |
| Component: | libraries/process | Version: | 6.12.3 |
| Keywords: | waitForProcess | Cc: | |
| Operating System: | Windows | Architecture: | x86 |
| Type of failure: | Incorrect result at runtime | Difficulty: | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
I am running this small sample program:
int main() { return -1; }
from this Haskell code (both from ghci and compiled):
import System.Process main = system "a.exe" >> putStrLn "This is not printed"
and get this error
tmp.exe: waitForProcess: invalid argument (Bad file descriptor)
I guess there is a runtime error inside system-call which crashes execution.
I am on Windows 7, ghc 6.12.1. I tried both Cygwin g++ and MSVS cl C++ compilers.
One side question: is there any other way to run external program?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

