From owner-cvs-all@FreeBSD.ORG Wed Feb 8 15:40:05 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6371B16A423; Wed, 8 Feb 2006 15:40:05 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3476E43D60; Wed, 8 Feb 2006 15:40:02 +0000 (GMT) (envelope-from mux@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k18Fe2hq099597; Wed, 8 Feb 2006 15:40:02 GMT (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k18Fe2p7099588; Wed, 8 Feb 2006 15:40:02 GMT (envelope-from mux) Message-Id: <200602081540.k18Fe2p7099588@repoman.freebsd.org> From: Maxime Henrion Date: Wed, 8 Feb 2006 15:40:01 +0000 (UTC) To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: projects/csup mux.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2006 15:40:05 -0000 mux 2006-02-08 15:40:01 UTC FreeBSD projects repository Modified files: csup mux.c Log: Fix a race condition in mux_fini() where we were checking the "closed" flag without holding the multiplexer lock, so it was possible to have two threads racing for the shutdown. Fix this by calling mux_shutdown() unconditionally in mux_fini() and by checking the closed flag in mux_shutdown() when we hold the multiplexer lock. Revision Changes Path 1.59 +7 -4 projects/csup/mux.c