[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: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2006-09-19 15:23:51 CEST

On Sat, Sep 16, 2006 at 02:39:26AM -0700, berni wrote:
> 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 ...

Right: when compiled with --enable-sigchild, PHP sets up a signal handler
(on first use) that auto-reaps zombies, eating the return code of any
hook scripts we run.

This feature is intended to be used with Oracle databases, which
apparently have a habit of spawning zombie children (as part of the
OCI API, I guess), but if enabled, it'll affect every module loaded
into Apache.

I'm not really sure what the right thing to do here is: it's certainly
rude for mod_php to set a process-wide signal handler, but when you're
using it against an Oracle database, that's probably what you want.
Perhaps SUSE shouldn't ship mod_php compiled that way by default?
It's surely easier to track down problems with zombie Oracle processes
on PHP than risk breaking every other module that might want to create
subprocesses, I'd've thought.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 19 15:24:19 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.