id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
2123,implement waitForProcess using signals,simonmar,,"`waitForProcess` currently calls `waitpid` with a safe FFI call, which means that 

 * you need to use `-threaded` to call this in a multithreaded program
 * one OS thread is needed per `waitProcess`

instead we could implement this using the IO manager: have `waitForProcess` communicate with the IO manager, which wakes up the client when the appropriate `SIGCHLD` is received.  Note that this means hooking `SIGCHLD` so we'd interact badly if the program itself wanted to use `SIGCHLD`.

I think it was Duncan Coutts who mentioned this idea to me.",task,new,lowest,7.6.2,libraries/process,6.8.2,,,,Unknown/Multiple,Unknown/Multiple,,Moderate (less than a day),,,,
