You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/11/01 07:57:53 UTC

DO NOT REPLY [Bug 43763] New: - failed to start httpd

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43763>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43763

           Summary: failed to start httpd
           Product: Apache httpd-2
           Version: 2.2.3
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: ymatsu@terilogy.com


During startup, if accidently another process from httpd is already running and
unexpectedly httpd.pid file has same number to this "another process", then you
have a problem. Even if you execute /etc/init.d/apacheclt in that situation,
httpd process will never be started. In mpm_common.c file, we have a function
named "ap_signal_server". This is checking pid file and get it then try to send
signal(0) to see the process which has such pid number is already running or
not. However this routine does not check that the process which has exact same
pid number from pid file is "httpd" or other processes.

Test case:
You can try to execute;

$ cat

and cat command will keep running.
Check the pid of this cat from another terminal and overwrite the httpd.pid
with that pid cat command has. Then you run /etc/init.d/apachectl and it
failed to start httpd processes.

Could you modify apachectl script or mpm_common.c to avoid this issue?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org