From owner-cvs-src@FreeBSD.ORG Wed Nov 22 22:22:55 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D5BB816A50B; Wed, 22 Nov 2006 22:22:55 +0000 (UTC) (envelope-from mohans@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF98443E6C; Wed, 22 Nov 2006 22:21:35 +0000 (GMT) (envelope-from mohans@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kAMMLvop082238; Wed, 22 Nov 2006 22:21:57 GMT (envelope-from mohans@repoman.freebsd.org) Received: (from mohans@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAMMLvFr082237; Wed, 22 Nov 2006 22:21:57 GMT (envelope-from mohans) Message-Id: <200611222221.kAMMLvFr082237@repoman.freebsd.org> From: Mohan Srinivasan Date: Wed, 22 Nov 2006 22:21:57 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/kern uipc_socket.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Nov 2006 22:22:55 -0000 mohans 2006-11-22 22:21:57 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/kern uipc_socket.c Log: Fix a race in soclose() where connections could be queued to the listening socket after the pass that cleans those queues. This results in these connections being orphaned (and leaked). The fix is to clean up the so queues after detaching the socket from the protocol. Thanks to ups and jhb for discussions and a thorough code review. Approved by: re Revision Changes Path 1.242.2.7 +23 -23 src/sys/kern/uipc_socket.c