|
@@ -75,7 +75,7 @@ sub fork_and_exec {
|
|
|
# Close some inherited filehandles
|
|
# Close some inherited filehandles
|
|
|
close($_) foreach (@{$opts{"close_in_child"}});
|
|
close($_) foreach (@{$opts{"close_in_child"}});
|
|
|
# Execute the program
|
|
# Execute the program
|
|
|
- exec(@prog) or syserr(_g("exec %s"), "@prog");
|
|
|
|
|
|
|
+ exec({ $prog[0] } @prog) or syserr(_g("exec %s"), "@prog");
|
|
|
}
|
|
}
|
|
|
# Close handle that we can't use any more
|
|
# Close handle that we can't use any more
|
|
|
close($opts{"from_handle"}) if exists $opts{"from_handle"};
|
|
close($opts{"from_handle"}) if exists $opts{"from_handle"};
|