This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
65b3e9a
)
Use fork if available.
author
Perl 5 Porters
<perl5-porters.nicoh.com>
Thu, 28 Dec 1995 03:06:11 +0000
(
03:06
+0000)
committer
Andy Dougherty
<doughera.lafayette.edu>
Thu, 28 Dec 1995 03:06:11 +0000
(
03:06
+0000)
installman
patch
|
blob
|
blame
|
history
diff --git
a/installman
b/installman
index
aab0c22
..
6c99682
100755
(executable)
--- 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;