io.unix.launcher: Fix io bug which caused problems during bootstrap

db4
Eduardo Cavazos 2008-02-10 00:35:18 -06:00
parent bf2efa3ecc
commit 72313d0b4f
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ MEMO: 'arguments' ( -- parser )
: redirect ( obj mode fd -- )
{
{ [ pick not ] [ 3drop ] }
{ [ pick not ] [ 2nip F_SETFL 0 fcntl io-error ] }
{ [ pick +closed+ eq? ] [ close 2drop ] }
{ [ pick string? ] [ (redirect) ] }
} cond ;