io_close resets the cookie

master
leitner 19 years ago
parent 9512cee614
commit f65398ff2e

@ -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) {

Loading…
Cancel
Save