hush/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
..
libiproute iplink: comment out include <net/if_packet.h> 2013-08-16 12:20:25 +02:00
udhcp udhcpc: tweak help text more 2013-08-08 12:45:45 +02:00
arp.c
arping.c
brctl.c
Config.src
dnsd.c
ether-wake.c
ftpd.c
ftpgetput.c
hostname.c
httpd_indexcgi.c
httpd_post_upload.txt
httpd_ssi.c
httpd.c httpd: treat errors from stdin correctly. 2013-09-11 14:59:21 +02:00
ifconfig.c fix build error with musl libc due to if_slip.h 2013-08-15 09:54:51 +02:00
ifenslave.c
ifplugd.c ifplugd: use a larger netlink buffer 2013-08-04 18:10:26 +02:00
ifupdown.c
inetd.c
interface.c networking: fix potential overflow in ife_print6() 2013-08-14 17:43:05 +02:00
ip.c
ipcalc.c
isrv_identd.c
isrv.c
isrv.h
Kbuild.src
nameif.c
nbd-client.c
nc_bloaty.c nc: remove unnecessary "errno = 0" 2013-07-29 14:18:32 +02:00
nc.c nc: use symbolic SHUT_WR instead of literal 1 2013-07-28 21:08:37 +02:00
netstat.c
nslookup.c nslookup: set default DNS server again. Hopefully helps with 675 2013-06-27 01:09:51 +02:00
ntpd_simple.c
ntpd.c Whitespace fixes 2013-07-30 11:52:58 +02:00
ping.c ping: code shrink 2013-06-28 01:33:47 +02:00
pscan.c
route.c
slattach.c
tc.c Whitespace fixes 2013-07-30 11:52:58 +02:00
tcpudp_perhost.c
tcpudp_perhost.h
tcpudp.c
telnet.c
telnetd.c
telnetd.ctrlSQ.patch
tftp.c
traceroute.c
tunctl.c
vconfig.c
wget.c Whitespace fixes 2013-07-30 11:52:58 +02:00
whois.c
zcip.c