On Wednesday 17 October 2001 18:40, John Levon wrote: > On Wed, Oct 17, 2001 at 06:05:55PM +0100, Angus Leeming wrote: > > > completion of the child process. I don't see the point for the others, but > > this functionality can be added back in easily if so desired. > > how do we get back the return value for a dontwait system() call ?? > > (I haven't looked at the patch, I'm lazy)
It isn't a patch, it's a stand-alone test program and should be pretty easy to follow. Honest! Brief summary: we grab the pid of a forked child process and then, every 500ms check its status. We use the timer (that has your name on it!) to emit the signal that is connected to the ForkedcallController::timer method. If a process is found to have finished, then we call it's callback function. Easy! Angus