Mixing async and sync after a fork

2013-01-10 Thread Bo Lorentsen
Hi ... I have been playing with libev (ev++ in C++11) for a while now in a pure async setup for a while, and I have to say libev is a small but really nice peace of work, so thanks Mark :-) I needed to implement a set of long poll like function in some existing code base that uses, normal

Re: Mixing async and sync after a fork

2013-01-10 Thread Brandon Black
On Thu, Jan 10, 2013 at 10:05 AM, Bo Lorentsen b...@lue.dk wrote: The thing is ... this works amazingly, until I try to startup this app as a daemon (fork). And yes, when i start it as i daemon i make sure to call ev::post_fork(), and my default loop starts up as it is supposed to (but later

Re: Mixing async and sync after a fork

2013-01-10 Thread Bo Lorentsen
On 01/10/2013 05:18 PM, Brandon Black wrote: On Thu, Jan 10, 2013 at 10:05 AM, Bo Lorentsen b...@lue.dk mailto:b...@lue.dk wrote: The thing is ... this works amazingly, until I try to startup this app as a daemon (fork). And yes, when i start it as i daemon i make sure to call