Am 09.01.2006 um 16:38 schrieb Vlad Seryakov:

Looks like it will skip


(for the others: I had a short conversation
with Vlad over AIM double-checking this)

Yes, this is what I thought. So, the "proper"
way would be to code this like:

        if (waitPtr != NULL) {
            sockPtr = NULL;
            while ((nextPtr = waitPtr) != NULL) {
                waitPtr = nextPtr->nextPtr;
                nextPtr->nextPtr = sockPtr;
                sockPtr = nextPtr;
            }
            while (sockPtr != NULL) {
                nextPtr = sockPtr->nextPtr;
                if (!NsQueueConn(sockPtr, &now)) {
                    sockPtr->nextPtr = waitPtr;
                    waitPtr = sockPtr;
                }
                sockPtr = nextPtr;
            }
        }

Now, if nobody sees any problem with that, I will
make that change in driver.c

I'm still looking in the new driver.c with spooler
support. I believe this is allright but will do
some more peeking (it helps me understand the rest
of the code :-) )

Cheers
Zoran

Reply via email to