Changeset 1745
- Timestamp:
- 04/10/2007 05:08:11 PM (17 months ago)
- Files:
-
- 1 modified
-
branches/lighttpd-1.4.x/src/mod_fastcgi.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/lighttpd-1.4.x/src/mod_fastcgi.c
r1741 r1745 251 251 252 252 buffer *strip_request_uri; 253 254 unsigned short kill_signal; /* we need a setting for this as libfcgi 255 applications prefer SIGUSR1 while the 256 rest of the world would use SIGTERM 257 *sigh* */ 253 258 } fcgi_extension_host; 254 259 … … 652 657 for (proc = host->first; proc; proc = proc->next) { 653 658 if (proc->pid != 0) { 654 /* libfcgi wants SIGUSR1 for killing */ 655 kill(proc->pid, SIGUSR1); 656 kill(proc->pid, SIGTERM); 659 kill(proc->pid, host->kill_signal); 657 660 } 658 661 … … 665 668 for (proc = host->unused_procs; proc; proc = proc->next) { 666 669 if (proc->pid != 0) { 667 /* libfcgi wants SIGUSR1 for killing */ 668 kill(proc->pid, SIGUSR1); 669 kill(proc->pid, SIGTERM); 670 kill(proc->pid, host->kill_signal); 670 671 } 671 672 if (proc->is_local && … … 1033 1034 "in the output, NOT (cgi) NOR (cli)\n" 1034 1035 "For more information check http://www.lighttpd.net/documentation/fastcgi.html#preparing-php-as-a-fastcgi-program"); 1035 log_error_write(srv, __FILE__, __LINE__, "s",1036 "If this is PHP on Gentoo add fastcgi to the USE flags");1037 1036 } else if (WIFSIGNALED(status)) { 1038 1037 log_error_write(srv, __FILE__, __LINE__, "sd", … … 1186 1185 1187 1186 { "broken-scriptfilename", NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_CONNECTION }, /* 14 */ 1188 { "allow-x-send-file", NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_CONNECTION }, /* 15 */1187 { "allow-x-send-file", NULL, T_CONFIG_BOOLEAN, T_CONFIG_SCOPE_CONNECTION }, /* 15 */ 1189 1188 { "strip-request-uri", NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_CONNECTION }, /* 16 */ 1189 { "kill-signal", NULL, T_CONFIG_SHORT, T_CONFIG_SCOPE_CONNECTION }, /* 17 */ 1190 1190 1191 1191 { NULL, NULL, T_CONFIG_UNSET, T_CONFIG_SCOPE_UNSET } … … 1214 1214 host->break_scriptfilename_for_php = 0; 1215 1215 host->allow_xsendfile = 0; /* handle X-LIGHTTPD-send-file */ 1216 host->kill_signal = SIGTERM; 1216 1217 1217 1218 fcv[0].destination = host->host; … … 1234 1235 fcv[15].destination = &(host->allow_xsendfile); 1235 1236 fcv[16].destination = host->strip_request_uri; 1237 fcv[17].destination = &(host->kill_signal); 1236 1238 1237 1239 if (0 != config_insert_values_internal(srv, da_host->value, fcv)) {

