569 |
569 |
570 handler->debug_finished = TRUE; |
570 handler->debug_finished = TRUE; |
571 |
571 |
572 if(handler->result == REQ_ABORTED && handler->process.pid != 0) { |
572 if(handler->result == REQ_ABORTED && handler->process.pid != 0) { |
573 log_ereport(LOG_FAILURE, "cgi-send: kill script: %s pid: %d", handler->path, (int)handler->process.pid); |
573 log_ereport(LOG_FAILURE, "cgi-send: kill script: %s pid: %d", handler->path, (int)handler->process.pid); |
574 killpg(handler->process.pid, SIGKILL); |
574 if(killpg(handler->process.pid, SIGKILL)) { |
|
575 log_ereport(LOG_FAILURE, "cgi-send: pid: %d kill failed: %s", (int)handler->process.pid, strerror(errno)); |
|
576 } |
575 } |
577 } |
576 |
578 |
577 if(--handler->events > 0) { |
579 if(--handler->events > 0) { |
578 return 0; |
580 return 0; |
579 } |
581 } |