From 2a8128025b7c4afaf144b88130184d97e470cc8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sat, 14 Aug 2021 11:37:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=83=B5=E5=B0=B8=E8=BF=9B?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server.c b/server.c index 3f9c279..fe20ab3 100644 --- a/server.c +++ b/server.c @@ -229,6 +229,7 @@ static void execute_cgi(int client, int content_length, const HTTP_REQUEST* requ else if(pid == 0) { char env[255]; + signal(SIGCHLD,SIG_IGN); dup2(cgi_output[1], 1); dup2(cgi_input[0], 0); close(cgi_output[0]);