浏览代码

Function abort_process is not defined unless we are using timers.

ryankopf 7 年之前
父节点
当前提交
44458f8104
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/civetweb.c

+ 2 - 0
src/civetweb.c

@@ -11100,7 +11100,9 @@ done:
 	mg_free(blk.buf);
 
 	if (pid != (pid_t)-1) {
+#if defined(USE_TIMERS)
 		abort_process((void *)pid);
+#endif
 	}
 	if (fdin[0] != -1) {
 		close(fdin[0]);