summaryrefslogtreecommitdiffstats
path: root/lem/io/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'lem/io/stream.c')
-rw-r--r--lem/io/stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lem/io/stream.c b/lem/io/stream.c
index 07aa5d2..204df81 100644
--- a/lem/io/stream.c
+++ b/lem/io/stream.c
@@ -56,6 +56,8 @@ stream_gc(lua_State *T)
if (s->open & 1)
close(s->r.fd);
+ if (s->open & 2)
+ fcntl(s->w.fd, F_SETFL, 0);
return 0;
}