CVSROOT: /cvs Module name: src Changes by: [email protected] 2015/03/26 15:22:50
Modified files:
usr.bin/nc : netcat.c
Log message:
The code in socks.c writes multiple times in a row to a socket. If the
socket becomes invalid between these calls (e.g. connection closed), write
will throw SIGPIPE. With this patch, SIGPIPE is ignored so we can
handle write's -1 return value (errno will be EPIPE). Ultimately, it leads
to program exit, too -- but with nicer error message. :)
with input by and ok djm
