POpen, opening lots of processes

Hal Daume III hdaume at ISI.EDU
Thu Jan 8 09:33:29 EST 2004


Hi,

I'm using POpen to shell out to a command several hundreds or thousands of 
times per call (none of them simultaneous, though, this is completely 
serial).  After running my program for a while, I get:

Fail: resource exhausted
Action: forkProcess
Reason: Resource temporarily unavailable

which basically seems to be telling me that the program hasn't been 
closing the old processes, even though they're definitely not in use 
anymore.

Does anyone have any suggestions how to get around this?

Thanks!

 - Hal

-- 
 Hal Daume III                                   | hdaume at isi.edu
 "Arrest this man, he talks in maths."           | www.isi.edu/~hdaume



More information about the Glasgow-haskell-users mailing list