cvs commit: projects/csup mux.c
Maxime Henrion
mux at FreeBSD.org
Wed Feb 8 07:40:05 PST 2006
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
More information about the cvs-projects
mailing list