tport.c: fixed su_wait flags for connected socket

darcs-hash:20070126152206-a63cf-adf21a7e5e736df29cb784619990e2dccbdf9b32.gz
parent 6c4b8cce
......@@ -2512,7 +2512,7 @@ static int tport_connected(su_root_magic_t *magic, su_wait_t *w, tport_t *self)
su_root_deregister(mr->mr_root, self->tp_index);
self->tp_index = -1;
self->tp_events = SU_WAIT_IN | SU_WAIT_ERR;
self->tp_events = SU_WAIT_IN | SU_WAIT_ERR | SU_WAIT_HUP;
if (su_wait_create(wait, self->tp_socket, self->tp_events) == -1 ||
(self->tp_index = su_root_register(mr->mr_root,
wait, tport_wakeup, self, 0))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment