]> granicus.if.org Git - apache/commit
Append the .PID to the ScriptSock filename. This change ensures that multiple
authorColm MacCarthaigh <colm@apache.org>
Thu, 25 Aug 2005 11:51:24 +0000 (11:51 +0000)
committerColm MacCarthaigh <colm@apache.org>
Thu, 25 Aug 2005 11:51:24 +0000 (11:51 +0000)
commitb379e699a4b7f2588fa11503738635317ca1516d
tree275dd99bb266525b30f0cd17ef6000b80f1df325
parente3d4e1fe506ef14f8fd5db8f36f5ce9842686b44
Append the .PID to the ScriptSock filename. This change ensures that multiple
running instances of httpd will not clobber each others script sockets.

Because a different socket will be created for each instance, this change also
unlinks the script-socket on exit, to prevent pollution.

unlink() happens from within the parent process, since the change in userid's
means the cgid process likely won't have the correct permissions.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@240044 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/generators/mod_cgid.c