Implement SO_NOSIGPIPE
authorJohn Marino <draco@marino.st>
Thu, 1 Nov 2012 22:54:16 +0000 (23:54 +0100)
committerJohn Marino <draco@marino.st>
Fri, 2 Nov 2012 00:15:22 +0000 (01:15 +0100)
commit89233cfd97300c5309bc96594ef1b873b24d60c2
tree2472875b8ffd7193f41a38b590b20ee51416fde1
parent3eca42272f995aeaee9d72266e8812fa6860c9da
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
sys/kern/sys_generic.c
sys/kern/sys_socket.c
sys/kern/uipc_socket.c
sys/kern/uipc_syscalls.c
sys/sys/socket.h
tools/regression/sockets/sigpipe/Makefile [new file with mode: 0644]
tools/regression/sockets/sigpipe/sigpipe.c [new file with mode: 0644]