src/server/safs/cgi.c

changeset 526
6c06b845701a
parent 525
072d7794bcca
child 527
bc6b4f3d92af
equal deleted inserted replaced
525:072d7794bcca 526:6c06b845701a
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 }

mercurial