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);
|
||||
ClearFDOpen(F);
|
||||
}
|
||||
|
||||
if(type & RB_FD_LISTEN)
|
||||
shutdown(fd, SHUT_RDWR);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue