1 klito Sep 22, 2011 13:12
3 klito Sep 22, 2011 23:59
sam2kb wrote:
These errors are fixed in the latest beta version.
More info: http://forums.b2evolution.net//viewtopic.php?t=21893
I do all sugested and no solution for me. How solve this?
What occur if I mantain the site with the above messages?
Thanks
Antonio
4 sam2kb Sep 23, 2011 00:53
Confirm that you have exactly the same block in /inc/_core/_misc.funcs.php lines 150-180
if( is_callable('pcntl_fork') && function_exists('posix_kill') && defined('STDIN') )
{
if( $pid = pcntl_fork() )
return; // Parent
function shutdown_kill()
{
posix_kill(posix_getpid(), SIGHUP);
}
if ( ob_get_level() )
{ // Discard the output buffer and close
ob_end_clean();
}
fclose(STDIN); // Close all of the standard
fclose(STDOUT); // file descriptors as we
fclose(STDERR); // are running as a daemon.
register_shutdown_function('shutdown_kill');
if( posix_setsid() < 0 )
return;
if( $pid = pcntl_fork() )
return; // Parent
// Now running as a daemon. This process will even survive
// an apachectl stop.
}
5 klito Sep 23, 2011 09:33
sam2kb wrote:
Confirm that you have exactly the same block in /inc/_core/_misc.funcs.php lines 150-180
if( is_callable('pcntl_fork') && function_exists('posix_kill') && defined('STDIN') ) { if( $pid = pcntl_fork() ) return; // Parent function shutdown_kill() { posix_kill(posix_getpid(), SIGHUP); } if ( ob_get_level() ) { // Discard the output buffer and close ob_end_clean(); } fclose(STDIN); // Close all of the standard fclose(STDOUT); // file descriptors as we fclose(STDERR); // are running as a daemon. register_shutdown_function('shutdown_kill'); if( posix_setsid() < 0 ) return; if( $pid = pcntl_fork() ) return; // Parent // Now running as a daemon. This process will even survive // an apachectl stop. }
Hi Sam,
Thanks for your help.
Now all is ok.
Before wasn't possible be ok by the reason that the files shown on the post:
http://forums.b2evolution.net/...hp?t=21893
and your actual above information.
On other hand, do not start at line 150-180 but line 142-167 on B2evol 4.0.5.
Thanks for your good help. You is a B2evol guru.
Antonio
6 sam2kb Sep 23, 2011 18:24
No problem ;)
These errors are fixed in the latest beta version.
More info: http://forums.b2evolution.net//viewtopic.php?t=21893