Warn when deleting an IOHandle with waiting processes

This commit is contained in:
Tony Garnock-Jones 2011-01-02 10:29:47 -05:00
parent f044c3b8ff
commit 5e7a6efeb8
1 changed files with 5 additions and 0 deletions

View File

@ -183,6 +183,11 @@ IOHandle *new_iohandle(int fd) {
}
void delete_iohandle(IOHandle *h) {
if (h->waiters) {
warn("Deleting IOHandle %p with fd %d: processes are blocked on this handle!\n",
h,
h->fd);
}
bufferevent_free(h->io);
free(h);
}