io_close resets the cookie

This commit is contained in:
leitner 2005-09-02 21:52:22 +00:00
parent 9512cee614
commit f65398ff2e

View File

@ -11,6 +11,7 @@ void io_close(int64 d) {
io_entry* e;
if ((e=array_get(&io_fds,sizeof(io_entry),d))) {
e->inuse=0;
e->cookie=0;
io_dontwantread(d);
io_dontwantwrite(d);
if (e->mmapped) {