Unix Technical Forum

Re: interface groups

This is a discussion on Re: interface groups within the mailing.openbsd.tech forums, part of the OpenBSD category; --> On 23/06/2004, Henning Brauer <lists-openbsdtech@bsws.de> wrote To tech@openbsd.org : > the manpage example is bad for draining the entire ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 08:06 AM
Philipp Buehler
 
Posts: n/a
Default Re: interface groups

On 23/06/2004, Henning Brauer <lists-openbsdtech@bsws.de> wrote To tech@openbsd.org:
> the manpage example is bad for draining the entire queue.
> the point however is that TAILQ_REMOVE in a TAILQ_FOREACH loop is
> going to bomb out.


No. It *might* bomb out. ;-)

That's the evil part. It's a somewhat race and in the typical "testing"
it wont have to happen - else it would never go into a tree.

Actually, if you look at my latest diff, I've chosen a variant of the
for loop, since in a bit more complex traversal it wont work like
the example in the manpage.
And no, do not always _INIT the thing, too ;-)

After hike there shold be some rewrite of .Sh NOTES - this is more
confusing then helping.

ciao
--
pb@

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:23 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com