mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-06 20:56:38 +02:00
If we lookup a fileno that was cached but closed we need to reopen it.
This commit is contained in:
parent
a2ffe5301b
commit
26716b1a2b
1 changed files with 1 additions and 0 deletions
1
sexp.c
1
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));
|
res = sexp_lookup_fileno(ctx, sexp_unbox_fixnum(fd));
|
||||||
if (sexp_filenop(res)) {
|
if (sexp_filenop(res)) {
|
||||||
sexp_fileno_no_closep(res) = sexp_truep(no_closep);
|
sexp_fileno_no_closep(res) = sexp_truep(no_closep);
|
||||||
|
sexp_fileno_openp(res) = 1; /* not necessarily */
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue