Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move STDIN/OUT/ERR init to a more logical place
  • Loading branch information
lizmat committed Nov 29, 2014
1 parent d2a4bb4 commit b78a931
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/core/IO/Dup.pm
Expand Up @@ -41,4 +41,8 @@ class IO::Dup does IO does PIO {
method changed(IO::Dup:D:) { Instant }
}

PROCESS::<$ERR> = IO::Dup.new( :fileno(2) );
PROCESS::<$OUT> = IO::Dup.new( :fileno(1) );
PROCESS::<$IN> = IO::Dup.new( :fileno(0) );

# vim: ft=perl6 expandtab sw=4
4 changes: 0 additions & 4 deletions src/core/io_operators.pm
Expand Up @@ -239,10 +239,6 @@ sub homedir($path as Str, :$test = <r w x>) {
$*HOME = $newHOME;
}

PROCESS::<$IN> = IO::Dup.new( :fileno(0) );
PROCESS::<$OUT> = IO::Dup.new( :fileno(1) );
PROCESS::<$ERR> = IO::Dup.new( :fileno(2) );

sub chmod($mode, *@filenames, :$SPEC = $*SPEC, :$CWD = $*CWD) {
my @ok;
for @filenames -> $file {
Expand Down

0 comments on commit b78a931

Please sign in to comment.