From:             [EMAIL PROTECTED]
Operating system: RED HAT Linux 7.2
PHP version:      4.1.2
PHP Bug Type:     Apache related
Bug description:  exec or system a daemon will catch the port for this session

This are my simple commands:
system("$DLC/bin/proserve $CADB/$DB 2>&1");                 
system("exec $DLC/bin/_mprshut $CADB/$DB -C watchdog 2>&1");


The first command works fine but the second hangs the actual httpd
session.
It executes o.k. but tries to get the actual webserver process:
[root@linux datenbank]# lsof | grep www                                   
    
httpd     30824 root   16u  IPv4      28772                  TCP *:www
(LISTEN)
httpd     30825 root   16u  IPv4      28772                  TCP *:www
(LISTEN)
httpd     30826 root   16u  IPv4      28772                  TCP *:www
(LISTEN)
httpd     30827 root   16u  IPv4      28772                  TCP *:www
(LISTEN)
httpd     30828 root   16u  IPv4      28772                  TCP *:www
(LISTEN)
httpd     30829 root   16u  IPv4      28772                  TCP *:www
(LISTEN)
httpd     30831 root   16u  IPv4      28772                  TCP *:www
(LISTEN)
httpd     30835 root   16u  IPv4      28772                  TCP *:www
(LISTEN)
_mprshut  31169 root   16u  IPv4      28772                  TCP *:www
(LISTEN)

This process is the parent of 1:
[root@linux datenbank]# ps -ef | grep 31169                               
     
root     31169     1  0 13:14 ?        00:00:00 /home/dlc83e/bin/_mprshut
/home/
                                                                          
     
[root@linux datenbank]# ps -ef | grep 30835                               
     
root     30835 30824  0 10:59 ?        00:00:00
/usr/local/apache/bin/httpd     

Then my actual session of my IE hangs and i only can lose it.
The php script is ended because i got </body> and the IE loading bar
vanished.
I can't restart the server because this process 31169 holds port 80 open.


I use the same script on SCO, Reliant Unix and HP-UX11.
On HP-UX11 the _mprshut also listen on port 80 but on a different session
because the website still reacts.
The apache server restart is impossible before killing this process
manually.
              

Any ideas where i can search the problem ??
-- 
Edit bug report at http://bugs.php.net/?id=16548&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16548&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16548&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16548&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16548&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16548&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16548&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16548&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16548&r=submittedtwice

Reply via email to