cvs commit: projects/csup mux.c

Maxime Henrion <[email protected]> Wed, 8 Feb 2006 15:40:01 +0000 (UTC)
Newsgroups gmane.os.freebsd.devel.cvs.projects
Message-ID <200602081540.k18Fe2p7099588__35176.6610205688$1139413410$gmane$org@repoman.freebsd.org>
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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-projects
To unsubscribe, send any mail to "[email protected]"