Bug #16548 Updated: exec or system a daemon will catch the port for this session
| From: | stefan dot marquardt at hagebau dot de | Date: | Wed, 17 Apr 2002 10:04:14 +0000 |
| Subject: | Bug #16548 Updated: exec or system a daemon will catch the port for this session | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-5179@lists.php.net to get a copy of this message | ||
ID: 16548
Updated by: stefan.marquardt@hagebau.de
Reported By: stefan.marquardt@hagebau.de
Status: Bogus
Bug Type: Apache related
Operating System: RED HAT Linux 7.2
PHP Version: 4.1.2
New Comment:
New information:
I use now a cgi-bin version from php (before it was compiled into
apache).
If i start the script frist time it runs perfect and ended.
(i see no php process).
After that i can open any html pages without problem.
If i try to open any php page in the same session it hungs.
I can see the php process ans strace shows this:
flock(3, LOCK_EX
Is there a possibilty for debugging php itself ?
I compiled not enable-debug but what can i do with that ?
Previous Comments:
------------------------------------------------------------------------
[2002-04-15 08:48:10] stefan.marquardt@hagebau.de
>system(" ( $DLC/bin/_mprshut $CADB/$DB -C watchdog >/dev/null 2>&1
</dev/null )&");
>That should run the command in a sub-shell, and might solve this
strange
problem.
>Also, have you tried enabling the sigchild handler?
./configure --help | grep sigchild
Nothing helps.
The developer of _mprshut can reproduce the same effect under IS(NT).
------------------------------------------------------------------------
[2002-04-12 07:04:44] stefan.marquardt@hagebau.de
>> As a workaround, don't use exec :-)
system("$DLC/bin/_mprshut $CADB/$DB -C watchdog 2>&1
</dev/null");
has the same effect.
:-(
------------------------------------------------------------------------
[2002-04-12 05:26:26] wez@php.net
Most likely _mprshut is forking but keeping some fd's open, or doing
something else strange.
I can't see how this is PHP's fault (it just uses popen),
so I'm marking this as bogus.
As a workaround, don't use exec :-)
------------------------------------------------------------------------
[2002-04-12 02:06:33] stefan.marquardt@hagebau.de
The same with:
system("exec $DLC/bin/_mprshut $CADB/$DB -C watchdog 2>&1
</dev/null");
This _mprshut needs no input.
(I mail this problem also to the developer of _mprshut,Progress
Database.)
The rest of the php script finishes but i can't open a new page and
have to close this session.
In the moment i have no further idea to separate this command from the
actual www session.
I tried "at", that works but +1 minute is too late. :-(
------------------------------------------------------------------------
[2002-04-11 11:55:05] wez@php.net
Try this:
system("exec $DLC/bin/_mprshut $CADB/$DB -C watchdog 2>&1
</dev/null");
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/16548
--
Edit this bug report at http://bugs.php.net/?id=16548&edit=1