On Fri, Mar 4, 2011 at 5:51 AM, Christophe Fillot <[email protected]> wrote: [...] > I tried to use event_reinit() and/or event_base_free() on the master ev_base > in the child processes but this seems to break the loop in the master > process.
In theory, this approach is supposed to work: what problems are you seeing in the master process? (event_base_free sounds like what you want if you do not want to use the original event_base in the subprocess. ) If I understand right, you start with a master process with an event_base with some signal events pending in it. Then you fork, and create new event_bases in the subprocesses, and you want to add signals to them instead. Given that (IIUC) you do not plan to use the original event_base in the subprocesses, so it should be okay to free it. Of course, if this isn't working for you, then something has gone wrong. What failure mode have you found when you try to do this? -- Nick *********************************************************************** To unsubscribe, send an e-mail to [email protected] with unsubscribe libevent-users in the body.
