1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/lib/libfetch
Jilles Tjoelker 28fd93073a libfetch: Avoid SIGPIPE on network connections.
To avoid unexpected process termination from SIGPIPE when writing to a
closed network connection, enable SO_NOSIGPIPE on all network connections.

The POSIX standard MSG_NOSIGNAL is not used since it requires modifying all
send calls to add this flag. This is particularly nasty for SSL connections.

Reviewed by:	des
Tested by:	bapt
MFC after:	5 days
2012-05-28 19:22:23 +00:00
..
common.c libfetch: Avoid SIGPIPE on network connections. 2012-05-28 19:22:23 +00:00
common.h Fix two issues related to the use of SIGINFO in fetch(1) to display 2012-01-18 15:13:21 +00:00
fetch.3 Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
fetch.c Support percent-encoded user and password 2012-04-11 15:42:02 +00:00
fetch.h latin1 -> utf8 2011-10-19 11:43:51 +00:00
file.c latin1 -> utf8 2011-10-19 11:43:51 +00:00
ftp.c latin1 -> utf8 2011-10-19 11:43:51 +00:00
ftp.errors
http.c Don't reuse credentials if redirected to a different host. 2012-04-30 12:12:48 +00:00
http.errors
Makefile Builds cleanly at the default WARNS level (WARNS=6). 2011-05-12 21:30:46 +00:00