diff options
Diffstat (limited to 'networking/httpd.c')
-rw-r--r-- | networking/httpd.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index cedec800f..92a07107d 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -1073,13 +1073,9 @@ static NOINLINE void cgi_io_loop_and_exit(int fromCgi_rd, int toCgi_wr, int post | |||
1073 | } | 1073 | } |
1074 | 1074 | ||
1075 | /* Now wait on the set of sockets */ | 1075 | /* Now wait on the set of sockets */ |
1076 | count = poll(pfd, 3, -1); | 1076 | count = safe_poll(pfd, 3, -1); |
1077 | if (count <= 0) { | 1077 | if (count <= 0) { |
1078 | #if 0 | 1078 | #if 0 |
1079 | if (errno == EINTR) | ||
1080 | continue; | ||
1081 | #endif | ||
1082 | #if 0 | ||
1083 | if (waitpid(pid, &status, WNOHANG) <= 0) { | 1079 | if (waitpid(pid, &status, WNOHANG) <= 0) { |
1084 | /* Weird. CGI didn't exit and no fd's | 1080 | /* Weird. CGI didn't exit and no fd's |
1085 | * are ready, yet poll returned?! */ | 1081 | * are ready, yet poll returned?! */ |