|
@@ -23,9 +23,7 @@
|
23
|
23
|
static void clean_exit(int status)
|
24
|
24
|
{
|
25
|
25
|
pyfcgi_IPC_close(IPC_WSTATE | IPC_WREQS | IPC_SEMST | IPC_SHMST);
|
26
|
|
- //temporarly destroy everything....
|
27
|
26
|
pyfcgi_IPC_destroy(IPC_WSTATE | IPC_WREQS | IPC_SEMST | IPC_SHMST);
|
28
|
|
- //pyfcgi_IPC_destroy(IPC_WSTATE);
|
29
|
27
|
exit(status);
|
30
|
28
|
}
|
31
|
29
|
|
|
@@ -54,25 +52,11 @@ void init_context()
|
54
|
52
|
PyFCGI_conf.context.ppid = getppid();
|
55
|
53
|
|
56
|
54
|
if(pyfcgi_IPC_create(IPC_WSTATE | IPC_WREQS | IPC_SEMST) < 0)
|
57
|
|
- {
|
58
|
|
- pyfcgi_log(LOG_ALERT, "Pool handler process is unable to create WSTATE SEM");
|
59
|
|
- sleep(1);
|
60
|
|
- clean_exit(PYFCGI_FATAL);
|
61
|
|
- }
|
62
|
|
- /*
|
63
|
|
- if(pyfcgi_IPC_create(IPC_WSTATE) < 0)
|
64
|
|
- {
|
65
|
|
- pyfcgi_log(LOG_ALERT, "Pool handler process is unable to create WSTATE SEM");
|
66
|
|
- sleep(1);
|
67
|
|
- clean_exit(PYFCGI_FATAL);
|
68
|
|
- }
|
69
|
|
- if(pyfcgi_IPC_init(IPC_WREQS | IPC_SEMST) < 0)
|
70
|
55
|
{
|
71
|
56
|
pyfcgi_log(LOG_ALERT, "Pool handler process is unable to init IPC components");
|
72
|
57
|
sleep(1);
|
73
|
58
|
clean_exit(PYFCGI_FATAL);
|
74
|
59
|
}
|
75
|
|
- */
|
76
|
60
|
}
|
77
|
61
|
|
78
|
62
|
int responder_loop()
|