Daemon News Ezine BSD News BSD Mall BSD Support Forum BSD Advocacy BSD Updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cvs commit: projects/csup mux.c

mux         2006-02-01 05:53:19 UTC

  FreeBSD projects repository

  Modified files:
    csup                 mux.c 
  - Not only did I blame GCC for a so-called bogus warning about an
    unitialized variable when we has indeed right, but I managed to leak
    channels mutexes in the error code path of both chan_read() and
    chan_write()!  Really fix the variable initialization by rewriting
    the loops more sanely, and fix the aforementioned leaks.
  - Rewrite sender_wakeup() more like in CVSup by retaining the status
    of the sender thread, thus avoiding unnecessary pthread_cond_signal()
  Revision  Changes    Path
  1.55      +41 -19    projects/csup/mux.c