Jorge
Jorge
Thanks, I pushed your second option (and left the first commented as documentation)
Cant merge this from the web interface (claims some conflict), will look into it later
Yes, I agree that your code seems perfectly reasonable. As you say there are two solutions, either mark the task as dead as soon as we know the coroutine is...
Thanks, I'll look into it! Off course, as you say such a system becomes useful only when it is integrated with some OS library. And that is actually the part...
That's a very interesting functionality, but I suspect it is possible to implement with an auxiliary function without modifying the scheduler. Something like ```lua function defer( task, f ) sched.run(...
Yes, probably having a single Lua callback will be good enough. You can pass the URL to the handler so it can discriminate between services if needed from inside the...
This is very nice. I don't see an obvious way to "improve" it. There's something that caught my attention, tough. ```nixio.waitpd``` is blocking, no? This should halt the whole application...
A quick note, is the waitpid in the main program neccesary? Can't you detect the 'closed' error when reading from the stream?
Oh I see. The fact that the library's user has call nixio.waitpid outside grab_all, in the main program, is not very safe/elegant. Have you tried setting the SIGCHLD signal to...