Date: Tue, 25 Apr 2006 11:48:16 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern uipc_syscalls.c Message-ID: <200604251148.k3PBmG6b041669@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2006-04-25 11:48:16 UTC
FreeBSD src repository
Modified files:
sys/kern uipc_syscalls.c
Log:
Extend getsock() to return the struct file flags read while holding the
file lock, in the style of fgetsock().
Modify accept1() to use getsock() instead of fgetsock(), relying on the
file descriptor reference rather than an acquired socket reference to
prevent the listen socket from being destroyed during accept(). This
avoids additional reference count operations, which should improve
performance, and also avoids accept1() operating on a socket whose file
descriptor has been torn down, which may have resulted in protocol
shutdown starting.
MFC after: 3 months
Revision Changes Path
1.227 +19 -18 src/sys/kern/uipc_syscalls.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604251148.k3PBmG6b041669>
