]> gitweb.factorcode.org Git - factor.git/commitdiff
io.backend.unix: fix handle-length on stdin.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 13 Mar 2018 20:53:26 +0000 (13:53 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 13 Mar 2018 20:53:26 +0000 (13:53 -0700)
basis/io/backend/unix/unix.factor

index 2468c53e58addad7154f3ee3009e16dc27bcaab4..e13d87d153b582946a64c7c8a47e62ca87e8f306 100755 (executable)
@@ -173,6 +173,8 @@ M: stdin refill
 M: stdin cancel-operation
     [ size>> ] [ control>> ] bi [ cancel-operation ] bi@ ;
 
+M: stdin fd>> data>> handle-fd ; ! for handle-length
+
 : control-write-fd ( -- fd ) &: control_write uint deref ;
 
 : size-read-fd ( -- fd ) &: size_read uint deref ;