Skip Menu |
 

From: ghudson@mit.edu
Subject: git commit

Prevent SIGPIPE from socket writes on UNIX-likes

When writing to a disconnected socket, try to only get EPIPE rather
than taking down the process with SIGPIPE.

On recent Linux and other systems which have it, switch from writev to
sendmsg and pass MSG_NOSIGNAL.

On BSD-likes, set SO_NOSIGPIPE at connect time.

https://github.com/krb5/krb5/commit/98bf22027bd6e746f456a671ca5e257ca4bd371e
Author: Robbie Harwood <rharwood@redhat.com>
Committer: Greg Hudson <ghudson@mit.edu>
Commit: 98bf22027bd6e746f456a671ca5e257ca4bd371e
Branch: master
src/include/port-sockets.h | 43 ++++++++++++++++++++++++++++++++++++++++---
1 files changed, 40 insertions(+), 3 deletions(-)
From: ghudson@mit.edu
Subject: git commit

Use port-sockets.h macros in cc_kcm, sendto_kdc

Use SOCKET_CONNECT in cc_kcm.c and sendto_kdc.c to prevent SIGPIPE on
BSD-like systems. Use other port-sockets.h macros in cc_kcm.c in case
it is ever used on Windows.

https://github.com/krb5/krb5/commit/2aaf0e74805e295358627ac1e5d589d625d8e6b0
Author: Greg Hudson <ghudson@mit.edu>
Commit: 2aaf0e74805e295358627ac1e5d589d625d8e6b0
Branch: master
src/lib/krb5/ccache/cc_kcm.c | 34 ++++++++++++++++++----------------
src/lib/krb5/os/sendto_kdc.c | 3 ++-
2 files changed, 20 insertions(+), 17 deletions(-)