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=37467>.
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=37467

           Summary: Apache does not terminate suexec CGI processes when
                    connection closed
           Product: Apache httpd-2.0
           Version: 2.0.54
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_suexec
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


we have a CGI process which runs forever, terminating when the user closes the
session (e.g. closes their browser window).

normally, this works fine.  however, when run as an suexec CGI, the process
never exits, because Apache cannot kill it.

from dtrace, with a normal CGI:
CPU     ID                    FUNCTION:NAME
  0  37018                       kill:entry pid = 25355
  0  37019                      kill:return ret = 0
  0  37018                       kill:entry pid = 25355
  0  37019                      kill:return ret = 0

with the suexec CGI:
  1  37018                       kill:entry pid = 25404
  1  37019                      kill:return ret = -1
  1  37018                       kill:entry pid = 25404
  1  37019                      kill:return ret = -1

the correct fix is for the CGI script to notice write errors and exit; however,
it would be nice if Apache or suexec learnt how to kill its setuid children.

(Observed on Solaris 10 AMD64, worker MPM.)

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to