mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
sexp_blocker can block on fileno objects
This commit is contained in:
parent
0a9dce93b0
commit
f209c38f4f
1 changed files with 2 additions and 0 deletions
|
@ -385,6 +385,8 @@ static sexp sexp_blocker (sexp ctx, sexp self, sexp_sint_t n, sexp portorfd) {
|
|||
/* register the fd */
|
||||
if (sexp_portp(portorfd))
|
||||
fd = sexp_port_fileno(portorfd);
|
||||
else if (sexp_filenop(portorfd))
|
||||
fd = sexp_fileno_fd(portorfd);
|
||||
else if (sexp_fixnump(portorfd))
|
||||
fd = sexp_unbox_fixnum(portorfd);
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue