1. Ruslan Osmanov
  2. pecl-ev
  3. Issues
Issue #2 resolved

php-fpm core dump in freebsd

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.

Thanks

Comments (2)

  1. Log in to comment