Feature #112 ยป setsid.diff
spawn-fcgi.c 2005-05-02 17:57:43.000000000 -0600 | ||
---|---|---|
119 | 119 |
char cgi_childs[64]; |
120 | 120 |
|
121 | 121 |
int i = 0; |
122 | ||
123 |
/* disconnect the controlling terminal */ |
|
124 |
setsid(); |
|
122 | 125 |
|
123 | 126 |
/* is save as we limit to 256 childs */ |
124 | 127 |
sprintf(cgi_childs, "PHP_FCGI_CHILDREN=%d", child_count); |