diff options
Diffstat (limited to 'fixprogs')
-rwxr-xr-x | fixprogs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -44,9 +44,9 @@ foreach (@infile) { | |||
44 | if (! ($pid = fork())) { | 44 | if (! ($pid = fork())) { |
45 | # child | 45 | # child |
46 | close STDIN; close STDOUT; close STDERR; | 46 | close STDIN; close STDOUT; close STDERR; |
47 | open STDIN, "</dev/null"; | 47 | open (STDIN, "</dev/null"); |
48 | open STDOUT, ">/dev/null"; | 48 | open (STDOUT, ">/tmp/foo"); |
49 | open STDERR, ">/dev/null"; | 49 | open (STDERR, ">/dev/null"); |
50 | exec $path @args; | 50 | exec $path @args; |
51 | exit 1; # shouldn't be here | 51 | exit 1; # shouldn't be here |
52 | } | 52 | } |