summaryrefslogtreecommitdiffstats
path: root/sysif.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysif.c')
-rw-r--r--sysif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysif.c b/sysif.c
index 26b67f3a..fa88128d 100644
--- a/sysif.c
+++ b/sysif.c
@@ -790,7 +790,7 @@ static val poll_wrap(val poll_list, val timeout_in)
pfd[i].fd = c_num(obj);
break;
case COBJ:
- if (obj->co.cls == stream_s) {
+ if (subtypep(obj->co.cls, stream_s)) {
val fdval = stream_get_prop(obj, fd_k);
if (!fdval) {
free(pfd);