[package] uhttpd: fix a signal related race condition exposed by LuCI on fast machines

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20573 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
Jo-Philipp Wich
2010-03-29 09:26:02 +00:00
parent f5144821ed
commit 33f40d7677
3 changed files with 7 additions and 3 deletions

View File

@@ -562,7 +562,10 @@ void uh_cgi_request(struct client *cl, struct http_request *req, struct path_inf
close(wfd[1]);
if( !kill(child, 0) )
{
kill(child, SIGTERM);
waitpid(child, NULL, 0);
}
break;
}