Date: Wed, 8 Feb 2006 15:40:01 +0000 (UTC) From: Maxime Henrion <mux@FreeBSD.org> To: projects-committers@FreeBSD.org, cvs-projects@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: projects/csup mux.c Message-ID: <200602081540.k18Fe2p7099588@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602081540.k18Fe2p7099588>