Browse Source

io_close resets the cookie

master
Felix von Leitner 16 years ago
parent
commit
a8fb810465
  1. 1
      io/io_close.c

1
io/io_close.c

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