[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Spuriously failing hook scripts

From: berni <bernhard_heibler_at_gmx.de>
Date: 2006-09-16 11:39:26 CEST

I had a quick look into the php code. In the function
php_request_startup a signal handler is installed that contains a
waitpid. That could explain the problem ...

http://viewcvs.php.net/viewvc.cgi/php-src/main/main.c?revision=1.700&view=markup

#if PHP_SIGCHILD
/* {{{ sigchld_handler
 */
static void sigchld_handler(int apar)
{
        while (waitpid(-1, NULL, WNOHANG) > 0);
        signal(SIGCHLD, sigchld_handler);
}
/* }}} */
#endif

/* {{{ php_request_startup
 */
#ifndef APACHE_HOOKS
int php_request_startup(TSRMLS_D)
{
        int retval = SUCCESS;

#ifdef PHP_WIN32
        CoInitialize(NULL);
#endif

#if PHP_SIGCHILD
        signal(SIGCHLD, sigchld_handler);
#endif

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Sep 16 11:40:26 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.