kernel - Fix bug in SO_NOSIGPIPE when socket fp called from kernel thread
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 16 Aug 2013 04:16:12 +0000 (21:16 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 16 Aug 2013 04:16:12 +0000 (21:16 -0700)
commitfdb46d7054e6938cb562d02c63271d56443c36ee
tree73fd820e4583a413c05609ec149a5b7f590d2b1f
parent086a8efc161a68dd89a92e4f903b7173eba5ae65
kernel - Fix bug in SO_NOSIGPIPE when socket fp called from kernel thread

* SO_NOSIGPIPE assumed that soo_write() was being called from a user
  process.  It can also be called from a kernel thread.

* Fixes hammer2 kdmsg thread crashes.
sys/kern/sys_socket.c