[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-myserver] waitpid timeout
From: |
Giuseppe Scrivano |
Subject: |
Re: [bug-myserver] waitpid timeout |
Date: |
Sat, 25 Apr 2009 16:25:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) |
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 <address@hidden> 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.