busybox/networking
Denys Vlasenko fbe250db76 httpd: treat errors from stdin correctly.
Fron bug report:

If a CGI or proxied connection is rudely aborted (SIG_{KILL,BUS,SEGV})
then httpd will spin madly the poll loop in:

networking/httpd.c:1080
cgi_io_loop_and_exit()

Upon investigation I found that pfd[0].revents == 0x0018 (POLLHUP|POLLERR),
which leads to empty read, but the pfd[0].fd (STDIN_FILENO) is left open,
and in the FD list given to poll() which immediately returns to once
again inform the loop of (POLLHUP|POLLERR) condition of pfd[0].fd.
This continues until pfd[FROM_CGI].revents != 0

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2013-09-11 14:59:21 +02:00
..
2013-08-08 12:45:45 +02:00
2013-02-04 16:18:58 +01:00
2013-01-14 15:57:44 +01:00
2012-09-29 16:43:33 +02:00
2011-07-08 05:47:49 +02:00
2012-03-19 12:22:57 +01:00
2013-01-14 01:34:48 +01:00
2013-08-04 18:10:26 +02:00
2011-12-06 18:59:55 +01:00
2010-11-28 23:01:18 +01:00
2013-07-29 14:18:32 +02:00
2013-01-14 15:57:44 +01:00
2013-07-30 11:52:58 +02:00
2013-06-28 01:33:47 +02:00
2013-07-30 11:52:58 +02:00
2011-07-25 16:35:44 +02:00
2013-05-12 02:13:24 +02:00
2013-07-30 11:52:58 +02:00
2011-09-21 01:59:15 +02:00