summaryrefslogtreecommitdiff
path: root/installman
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters.nicoh.com>1995-12-28 03:06:11 +0000
committerAndy Dougherty <doughera.lafayette.edu>1995-12-28 03:06:11 +0000
commitb29d8d1397a78458b8d5add8cef3da1f1d5fdf3e (patch)
treeded32a1c2d3788b9c4ba2b579ec221f932e0efc5 /installman
parent65b3e9aebf98dab8559f1979bc3e7a13ee3049a7 (diff)
downloadperl-b29d8d1397a78458b8d5add8cef3da1f1d5fdf3e.tar.gz
Use fork if available.
Diffstat (limited to 'installman')
-rwxr-xr-xinstallman7
1 files changed, 6 insertions, 1 deletions
diff --git a/installman b/installman
index aab0c22fc6..6c99682334 100755
--- a/installman
+++ b/installman
@@ -121,7 +121,12 @@ sub cmd {
local($cmd) = @_;
print STDERR " $cmd\n";
unless ($notify) {
- fork ? wait : exec $cmd;
+ if ($Config{d_fork}) {
+ fork ? wait : exec $cmd; # Allow user to ^C out of command.
+ }
+ else {
+ system $cmd;
+ }
warn "Command failed!!\n" if $?;
}
return $? != 0;