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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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@ |