librb: shutdown() listening sockets pending close() so that listeners can be reopened reliably
This commit is contained in:
parent
c767c58b2a
commit
8a29e7cd1e
1 changed files with 3 additions and 0 deletions
|
@ -895,6 +895,9 @@ rb_close(rb_fde_t *F)
|
||||||
remove_fd(F);
|
remove_fd(F);
|
||||||
ClearFDOpen(F);
|
ClearFDOpen(F);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(type & RB_FD_LISTEN)
|
||||||
|
shutdown(fd, SHUT_RDWR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue