put a log message before opening the FastCGI connection socket

FCGX_OpenSocket will call exit() if there was a problem with creating the socket.
This commit is contained in:
Tomasz Sowa 2022-06-27 20:52:09 +02:00
parent e29f912358
commit 31e826d893
1 changed files with 7 additions and 0 deletions

View File

@ -265,7 +265,14 @@ char sock_group[WINIX_OS_USERNAME_SIZE];
return false;
unlink(sock);
log << log3 << "App: trying to create a fcgi connection socket: " << sock << logend << logsave;
fcgi_socket = FCGX_OpenSocket(sock, config.fcgi_socket_listen);
/*
* WARNING:
* when there is a problem with creating the socket then FCGX_OpenSocket will call exit()
* and we never reach here
*/
if( fcgi_socket < 0 )
{