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:
udo
2021-12-05 01:54:53 +00:00
parent f77581114c
commit 0685fdf29a
5 changed files with 22 additions and 9 deletions
+3
View File
@@ -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);