librb: shutdown() listening sockets pending close() so that listeners can be reopened reliably

This commit is contained in:
Simon Arlott 2016-04-30 11:15:03 +01:00
parent c767c58b2a
commit 8a29e7cd1e
No known key found for this signature in database
GPG Key ID: C8975F2043CA5D24
1 changed files with 3 additions and 0 deletions

View File

@ -895,6 +895,9 @@ rb_close(rb_fde_t *F)
remove_fd(F);
ClearFDOpen(F);
}
if(type & RB_FD_LISTEN)
shutdown(fd, SHUT_RDWR);
}