git: kernel - Fix bug in SO_NOSIGPIPE when socket fp called from kernel thread

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Aug 15 21:17:41 PDT 2013


commit fdb46d7054e6938cb562d02c63271d56443c36ee
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Aug 15 21:16:12 2013 -0700

    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.

Summary of changes:
 sys/kern/sys_socket.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fdb46d7054e6938cb562d02c63271d56443c36ee


-- 
DragonFly BSD source repository


More information about the Commits mailing list