io_close resets the cookie
This commit is contained in:
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…
x
Reference in New Issue
Block a user