From f65398ff2e67a298116917d3a197a8b7a3b699bb Mon Sep 17 00:00:00 2001 From: leitner Date: Fri, 2 Sep 2005 21:52:22 +0000 Subject: [PATCH] io_close resets the cookie --- io/io_close.c | 1 + 1 file changed, 1 insertion(+) diff --git a/io/io_close.c b/io/io_close.c index c7bd7b0..c98da24 100644 --- a/io/io_close.c +++ b/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) {