php-fpm core dump in freebsd 9.1

Issue #3 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.

Thanks

Comments (6)

  1. Ruslan Osmanov repo owner

    *> would my fix will cause another problems ? If my fix is ok, I will send this pr to ports. It shouldn't. Do you want to package it for FreeBSD?

  2. Log in to comment