diff options
author | tobias <tobias@openbsd.org> | 2015-03-26 21:22:50 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-05-29 14:47:50 +1000 |
commit | d6a81050ace2630b06c3c6dd39bb4eef5d1043f8 (patch) | |
tree | c595ab2e2e47c021ffdf4c3711fc30118d58f6d2 /regress/cert-userkey.sh | |
parent | bf3893dddd35e16def04bf48ed2ee1ad695b8f82 (diff) |
partial sync of regress/netcat.c with upstream
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
Diffstat (limited to 'regress/cert-userkey.sh')
0 files changed, 0 insertions, 0 deletions