[PHP-DEV] Re: [BUG] fpm : bugs with epoll

2009-12-15 Thread Jérôme Loyet
I found a solution: Just after the fork() call to create a child, the first thing to do is to call event_init() to create a fresh libevent environment for the new child. In fact epoll shares the same fd between process and having not libevent reinit make things not working as excepted. It's not th

[PHP-DEV] Re: [BUG] fpm : bugs with epoll

2009-12-15 Thread Jérôme Loyet
Le 15 décembre 2009 17:08, Jérôme Loyet a écrit : > Hi > > I just figured out a bug with epoll on the last php-fpm version from svn. > > It seems that with epoll only (no problem with poll or select -- don't > have a freebsd ready to check kqueue), the catch_worker_output is > buggy. I just teste