git: socket: Dispose rights directly in soreceive(), if them are not wanted

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Tue Nov 3 19:09:45 PST 2015


commit e62cfe621d6a3206284fddd2af95661edca7f01d
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Nov 4 10:38:13 2015 +0800

    socket: Dispose rights directly in soreceive(), if them are not wanted
    
    Instead of leaving them to unp_gc().  This paves the way to simplify
    unp_gc() and to remove filehead.
    
    While I'm here, minor style changes.

Summary of changes:
 sys/kern/uipc_socket.c        | 20 ++++++++++++++++----
 test/unix/passdesc/passdesc.c | 24 +++++++++++++++++++-----
 2 files changed, 35 insertions(+), 9 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list