diff --git a/basis/io/ports/ports.factor b/basis/io/ports/ports.factor index 208e023e08..77b54d7192 100644 --- a/basis/io/ports/ports.factor +++ b/basis/io/ports/ports.factor @@ -208,9 +208,8 @@ M: output-port stream-seek M: buffered-port stream-seekable? handle>> can-seek-handle? ; -! Cannot be ``handle>> handle-length`` because of a race condition. M: buffered-port stream-length - drop f ; + handle>> handle-length [ f ] when-zero ; GENERIC: shutdown ( handle -- )