summaryrefslogtreecommitdiff
path: root/fixprogs
diff options
context:
space:
mode:
Diffstat (limited to 'fixprogs')
-rwxr-xr-xfixprogs6
1 files changed, 3 insertions, 3 deletions
diff --git a/fixprogs b/fixprogs
index 4a70d2f9..f781fec0 100755
--- a/fixprogs
+++ b/fixprogs
@@ -44,9 +44,9 @@ foreach (@infile) {
if (! ($pid = fork())) {
# child
close STDIN; close STDOUT; close STDERR;
- open STDIN, "</dev/null";
- open STDOUT, ">/dev/null";
- open STDERR, ">/dev/null";
+ open (STDIN, "</dev/null");
+ open (STDOUT, ">/tmp/foo");
+ open (STDERR, ">/dev/null");
exec $path @args;
exit 1; # shouldn't be here
}