fixed bugs that caused socket to close if a child crashes, and also falsely considered a stale SU cache entry to not be re-compile worthy
This commit is contained in:
@@ -81,6 +81,9 @@ FastCGIServer::FastCGIServer() :
|
||||
|
||||
FastCGIServer::~FastCGIServer()
|
||||
{
|
||||
if(my_pid != parent_pid) // if we're a child process, we must not close the handles
|
||||
return;
|
||||
|
||||
for (std::vector<int>::iterator it = listen_sockets.begin();
|
||||
it != listen_sockets.end(); ++it)
|
||||
close(*it);
|
||||
|
||||
Reference in New Issue
Block a user