DragonFly bugs List (threaded) for 2007-11
DragonFly BSD
DragonFly bugs List (threaded) for 2007-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Bug in socketvar.h?


From: Johannes Hofmann <Johannes.Hofmann@xxxxxx>
Date: 07 Nov 2007 16:20:43 GMT

After reading
http://www.onlamp.com/pub/a/bsd/2007/11/01/whats-new-in-bsd-42.html
(last question) I noticed that we seem to have the same makro.
Though I don't know any details, it looks wrong to me too.
The problematic part is:

#define ssb_lock(ssb, wf) ((ssb)->ssb_flags & SSB_LOCK ? \
                (((wf) == M_WAITOK) ? _ssb_lock(ssb) : EWOULDBLOCK) : \
                ((ssb)->ssb_flags |= SSB_LOCK), 0)


that in its current form always evaluates to 0.

 Johannes




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