Browse Source

put a log message before opening the FastCGI connection socket

FCGX_OpenSocket will call exit() if there was a problem with creating the socket.
master
Tomasz Sowa 2 months ago
parent
commit
31e826d893
  1. 7
      winixd/core/app.cpp

7
winixd/core/app.cpp

@ -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 )
{

Loading…
Cancel
Save