|
[ ghc-Bugs-972909 ] Posix.popen is broken: msg#00045lang.haskell.glasgow.bugs
Bugs item #972909, was opened at 2004-06-15 01:25 Message generated for change (Comment added) made by simonmar You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=972909&group_id=8032 >Category: hslibs/posix Group: None >Status: Closed Resolution: None Priority: 3 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. ---------------------------------------------------------------------- >Comment By: Simon Marlow (simonmar) Date: 2005-02-15 12:50 Message: Logged In: YES user_id=48280 Posix.popen is deprecated, replaced by System.Process in 6.4. ---------------------------------------------------------------------- Comment By: Simon Marlow (simonmar) Date: 2004-12-17 09:40 Message: Logged In: YES user_id=48280 Lowering priority; this library is subsumed by System.Process in GHC 6.4. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=972909&group_id=8032
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-1065291 ] Bad error message for missing module in --make, SourceForge.net |
|---|---|
| Next by Date: | [ ghc-Bugs-1122207 ] EVACUATED object entered!, SourceForge.net |
| Previous by Thread: | [ ghc-Bugs-1065291 ] Bad error message for missing module in --make, SourceForge.net |
| Next by Thread: | [ ghc-Bugs-1124080 ] Implicit Parameter Binding, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |