|
@@ -5,6 +5,7 @@ static pyfcgi_monitor_t pyfcgi_mon;
|
5
|
5
|
static void clean_exit(int status)
|
6
|
6
|
{
|
7
|
7
|
pyfcgi_wd_stop();
|
|
8
|
+ pyfcgi_log(LOG_DEBUG, "Exiting with status %d", status);
|
8
|
9
|
if(pyfcgi_mon.sockserv)
|
9
|
10
|
{
|
10
|
11
|
if(pyfcgi_mon.sockcli)
|
|
@@ -359,6 +360,8 @@ int pyfcgi_monitor_parse_sock(const char *sockurl, int sockargs[3],
|
359
|
360
|
*protocol = 0;
|
360
|
361
|
addr_un->sun_family = AF_UNIX;
|
361
|
362
|
strncpy(addr_un->sun_path, addr_ptr, UNIX_SOCKPATH_MAX);
|
|
363
|
+
|
|
364
|
+ unlink(addr_ptr); // if socket exists delete it
|
362
|
365
|
return 0;
|
363
|
366
|
}
|
364
|
367
|
|