RE: POpen, opening lots of processes

2004-01-09 Thread Simon Marlow
> > There is an outstanding proposal for a System.Process library: > > > > http://www.haskell.org/~simonmar/System.Process.html > > > > This is currently stalled because we need a non-blocking > > implementation of getProcessStatus (which is in the > > pipeline). Something akin to Tomasz's launc

Re: POpen, opening lots of processes

2004-01-09 Thread Ferenc Wagner
"Simon Marlow" <[EMAIL PROTECTED]> writes: >> Tomasz Zielonka <[EMAIL PROTECTED]> writes: >> >>> I had a similar problem, and finally I created my own >>> solution that doesn't leave zombies and doesn't block when >>> the launched process writes too much to stderr. >> >> Pretty neat, I've got an

RE: POpen, opening lots of processes

2004-01-09 Thread Simon Marlow
> Tomasz Zielonka <[EMAIL PROTECTED]> writes: > > > I had a similar problem, and finally I created my own > > solution that doesn't leave zombies and doesn't block when > > the launched process writes too much to stderr. > > Pretty neat, I've got an application idea for that code! > Couldn't it

Re: POpen, opening lots of processes

2004-01-09 Thread Ferenc Wagner
Tomasz Zielonka <[EMAIL PROTECTED]> writes: > I had a similar problem, and finally I created my own > solution that doesn't leave zombies and doesn't block when > the launched process writes too much to stderr. Pretty neat, I've got an application idea for that code! Couldn't it be include in the

Re: POpen, opening lots of processes

2004-01-09 Thread Tomasz Zielonka
On Thu, Jan 08, 2004 at 09:33:29AM -0800, Hal Daume III wrote: > 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