file descriptors
Johannes Waldmann
waldmann at imn.htwk-leipzig.de
Thu Oct 30 10:08:27 EDT 2008
Dear all,
are there any known issues
with file handles/descriptors in ghc-compiled executables?
My program has a lot of calls to System.Process.runInteractiveProcess
and I'm running into unpredictable behaviour (sometimes the program
just silently dies, sometimes it gets stuck)
The handles I get correspond to file descriptors in the OS?
Could there be any conflicts? (Like not enough available,
or re-used to early etc.)
Or perhaps you see anything that's wrong with my code here
http://dfa.imn.htwk-leipzig.de/cgi-bin/cvsweb/box/src/SMT/Time.hs?rev=1.9
I'm compiling this with -threaded, but running with -N1.
Of course, terminateProcess is another source of uncertainty here.
(Sometimes it takes several seconds until the external process dies.)
Any hints appreciated. - J.W.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20081030/7f7505ed/signature.bin
More information about the Glasgow-haskell-users
mailing list