git: Implement SO_NOSIGPIPE

John Marino marino at crater.dragonflybsd.org
Thu Nov 1 17:15:42 PDT 2012


commit 89233cfd97300c5309bc96594ef1b873b24d60c2
Author: John Marino <draco at marino.st>
Date:   Thu Nov 1 23:54:16 2012 +0100

    Implement SO_NOSIGPIPE
    
    The SO_NOSIGPIPE socket option allows a user process to mark a socket so
    that the socket does not generate SIGPIPE, only EPIPE, when a write is
    attempted after socket shutdown.
    
    Regression test added: tools/regression/sockets/sigpipe

Summary of changes:
 sys/kern/sys_generic.c                             |    2 +-
 sys/kern/sys_socket.c                              |    5 +-
 sys/kern/uipc_socket.c                             |    2 +
 sys/kern/uipc_syscalls.c                           |    3 +-
 sys/sys/socket.h                                   |    2 +-
 .../regression/sockets/sigpipe}/Makefile           |    3 +-
 tools/regression/sockets/sigpipe/sigpipe.c         |  322 ++++++++++++++++++++
 7 files changed, 334 insertions(+), 5 deletions(-)
 copy {test/dsched_fq => tools/regression/sockets/sigpipe}/Makefile (54%)
 create mode 100644 tools/regression/sockets/sigpipe/sigpipe.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/89233cfd97300c5309bc96594ef1b873b24d60c2


-- 
DragonFly BSD source repository



More information about the Commits mailing list