summaryrefslogtreecommitdiff
path: root/lib/Multi/Core.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Multi/Core.pm')
-rw-r--r--lib/Multi/Core.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Multi/Core.pm b/lib/Multi/Core.pm
index 076edf51..06ade2f1 100644
--- a/lib/Multi/Core.pm
+++ b/lib/Multi/Core.pm
@@ -79,9 +79,9 @@ sub _start {
chdir '/';
umask 0022;
$SIG{__WARN__} = sub {(local$_=shift)=~s/\r?\n//;$poe_kernel->call(core=>log=>'__WARN__: '.$_)};
- close STDOUT;
- close STDERR;
- close STDIN;
+ open STDIN, '/dev/null';
+ open STDOUT, '>/dev/null';
+ open STDERR, '>/dev/null';
}