Deleted useles comment in responder.c

This commit is contained in:
Yann Weber 2019-08-10 02:40:04 +02:00
commit 1762b5a272

View file

@ -23,9 +23,7 @@
static void clean_exit(int status) static void clean_exit(int status)
{ {
pyfcgi_IPC_close(IPC_WSTATE | IPC_WREQS | IPC_SEMST | IPC_SHMST); pyfcgi_IPC_close(IPC_WSTATE | IPC_WREQS | IPC_SEMST | IPC_SHMST);
//temporarly destroy everything....
pyfcgi_IPC_destroy(IPC_WSTATE | IPC_WREQS | IPC_SEMST | IPC_SHMST); pyfcgi_IPC_destroy(IPC_WSTATE | IPC_WREQS | IPC_SEMST | IPC_SHMST);
//pyfcgi_IPC_destroy(IPC_WSTATE);
exit(status); exit(status);
} }
@ -54,25 +52,11 @@ void init_context()
PyFCGI_conf.context.ppid = getppid(); PyFCGI_conf.context.ppid = getppid();
if(pyfcgi_IPC_create(IPC_WSTATE | IPC_WREQS | IPC_SEMST) < 0) if(pyfcgi_IPC_create(IPC_WSTATE | IPC_WREQS | IPC_SEMST) < 0)
{
pyfcgi_log(LOG_ALERT, "Pool handler process is unable to create WSTATE SEM");
sleep(1);
clean_exit(PYFCGI_FATAL);
}
/*
if(pyfcgi_IPC_create(IPC_WSTATE) < 0)
{
pyfcgi_log(LOG_ALERT, "Pool handler process is unable to create WSTATE SEM");
sleep(1);
clean_exit(PYFCGI_FATAL);
}
if(pyfcgi_IPC_init(IPC_WREQS | IPC_SEMST) < 0)
{ {
pyfcgi_log(LOG_ALERT, "Pool handler process is unable to init IPC components"); pyfcgi_log(LOG_ALERT, "Pool handler process is unable to init IPC components");
sleep(1); sleep(1);
clean_exit(PYFCGI_FATAL); clean_exit(PYFCGI_FATAL);
} }
*/
} }
int responder_loop() int responder_loop()