It looks like a good solution!  I haven't thought to use libevent with
processes but I am still a bit afraid about portability.
Unfortunately is a completely different mechanism than on Windows, where
it is possible to specify a timeout, causing a more complex design.
In order to get it working I will need to modify the scheduler, where
libevent is wrapped and used, adding the support for processes timeout.

Thanks,
Giuseppe


Alexandru IANCU <[email protected]> writes:

> Do you think using libevent like this:
>
> ...
> event ev;
> event_set(&ev, SIGCHLD, EV_SIGNAL|EV_TIMEOUT, NULL, NULL);
> timeval timeout = {5, 0};
> event_add(&ev, *timeout);
> event_dispatch();
> ...
>
> would help you?
>
> Andu.


Reply via email to