|
(connq_interrupt): New function.
(connq_set_length): When shrinking the queue, actually do so, and don't leak
memory.
(struct connq): Add the INTERRUPT_SEQ_NUM field, used to detect interupts.
(connq_listen): Detect when we get interrupted, and return EINTR.
Don't lock the accepted request just to get its sock.
(connq_connect): Initialize REQ before using it.
(connq_request_init): Swap the arguments.
(connq_listen, connq_connect, connq_interrupt, connq_set_length): Reverse the
roles of the HEAD and TAIL fields, and make sure they're used correctly.
(qprev): Deleted function.
|