git: libfetch: Avoid SIGPIPE on network connections

John Marino marino at
Thu Nov 1 17:32:09 PDT 2012

commit 14c24f74315ca3fb26eaf73089bbc97e0c0e50fa
Author: John Marino <draco at>
Date:   Fri Nov 2 01:26:34 2012 +0100

    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.
    Taken-from: FreeBSD SVN 236193 (28 May 2012)

Summary of changes:
 lib/libfetch/common.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list