From 26716b1a2b948a6f481fdc3e951118d0acf2f3b0 Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Tue, 3 Jun 2014 08:50:46 +0900 Subject: [PATCH] If we lookup a fileno that was cached but closed we need to reopen it. --- sexp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sexp.c b/sexp.c index af5f985e..af41f354 100644 --- a/sexp.c +++ b/sexp.c @@ -1716,6 +1716,7 @@ sexp sexp_make_fileno_op (sexp ctx, sexp self, sexp_sint_t n, sexp fd, sexp no_c res = sexp_lookup_fileno(ctx, sexp_unbox_fixnum(fd)); if (sexp_filenop(res)) { sexp_fileno_no_closep(res) = sexp_truep(no_closep); + sexp_fileno_openp(res) = 1; /* not necessarily */ return res; } #endif