[ ghc-Bugs-972909 ] Posix.popen is broken
SourceForge.net
noreply at sourceforge.net
Mon Jun 14 21:25:14 EDT 2004
Bugs item #972909, was opened at 2004-06-15 11:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=972909&group_id=8032
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Fergus Henderson (fergus)
Assigned to: Nobody/Anonymous (nobody)
Summary: Posix.popen is broken
Initial Comment:
Posix.popen hangs if the input is longer than 4096
characters.
For example, attempting to run the attached Haskell
source file will result in the program hanging. The
program attempts
to use Posix.popen to invoke "cat" without 5000 blank
lines as input.
The problem is that it tries to write to the pipe
before forking.
If there are more than 4096 characters, this will block
until some process reads from the pipe. But there's
only one process,
so it deadlocks.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=972909&group_id=8032
More information about the Glasgow-haskell-bugs
mailing list