diff --git a/module/ice-9/suspendable-ports.scm b/module/ice-9/suspendable-ports.scm index a823f1d37..a451b63f1 100644 --- a/module/ice-9/suspendable-ports.scm +++ b/module/ice-9/suspendable-ports.scm @@ -68,8 +68,12 @@ (define (wait-for-writable port) ((current-write-waiter) port)) (define (read-bytes port dst start count) + (define (socket? port) + (string-prefix? "# (lambda (read) (unless (<= 0 read count) (error "bad return from port read function" read))