Age | Commit message (Collapse) | Author |
|
* connq.c: Include <assert.h>. Reported by Arkadi E. Shishlov
<arkadi@it.lv>.
|
|
* connq.c (connq_destroy): New function.
* connq.h: Prototype connq_destroy.
* sock.c (sock_free): Call connq_destroy when listen or connect
queue exist.
|
|
Unlock CQ->lock when returning EWOULDBLOCK.
|
|
|
|
(connq_listen): Use hurd_condition_wait to detect interrupts instead of
previous ad-hoc mechanism.
(connq_interrupt, connq_interrupt_sock): Functions deleted.
|
|
(connq_interrupt_sock): Use connq_compress to compress the queue.
|
|
|
|
(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.
|
|
|
|
|
|
|
|
|
|
|
|
|