php-fpm core dump in freebsd

Issue #2 resolved
John Chen created an issue

Hi Osmanov, when I completed installation pecl-ev, It couse php-fpm core dump.

then I use gdb to trace, I found problem in

#if !defined(_WIN32) && !defined(_MINIX) pthread_atfork(0, 0, php_ev_default_fork); #endif

=============below is my fix, It works.================ / {{{ php_ev_default_fork / static void php_ev_default_fork(void) { #if !defined( FreeBSD ) ev_loop_fork(EV_DEFAULT_UC); #endif #if defined( FreeBSD ) ev_loop_fork(EV_DEFAULT); #endif } / }}} /

would my fix will cause another problems ? If my fix is ok, I will send this pr to ports.


Comments (2)

  1. Log in to comment