diff options
author | 2015-03-26 21:22:50 +0000 | |
---|---|---|
committer | 2015-03-26 21:22:50 +0000 | |
commit | 0a2929149fa9c8b1537bf60542d3e0163a9a0777 (patch) | |
tree | 42c40c16c72bb382de7dd4b5852030e6c643c15c /usr.bin/mandoc/manpath.c | |
parent | Fix error message in case of write failure. (diff) | |
download | wireguard-openbsd-0a2929149fa9c8b1537bf60542d3e0163a9a0777.tar.xz wireguard-openbsd-0a2929149fa9c8b1537bf60542d3e0163a9a0777.zip |
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 'usr.bin/mandoc/manpath.c')
0 files changed, 0 insertions, 0 deletions