X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=lib%2FUtils.pm;h=f52fe4be1acc442d817d541361c0d99767a5f9fd;hb=4c24c2eea11a8cc408126ab1da3bfd08ff2232de;hp=78af1712658f5e5ef9a49634407f424f89337ff1;hpb=a5e947bf363fa107c5f7de50e6334ddcec415eb0;p=clearscm.git diff --git a/lib/Utils.pm b/lib/Utils.pm index 78af171..f52fe4b 100644 --- a/lib/Utils.pm +++ b/lib/Utils.pm @@ -156,7 +156,7 @@ Returns: or error "Can't write to $errorlog ($!)", 1; # Change the current directory to / - my $ROOT = $ARCH eq "windows" ? "C:\\" : "/"; + my $ROOT = $ARCHITECTURE eq "windows" ? "C:\\" : "/"; chdir $ROOT or error "Can't chdir to $ROOT ($!), 1"; @@ -232,17 +232,11 @@ STDOUT then do so in the $command passed in. =cut - # Save $SIG{CHLD} so we can set it to 'DEFAULT' and then restore it later. - # Helps when you are doing process handling. - my $sigchld = $SIG{CHLD}; - local $SIG{CHLD} = 'DEFAULT'; my @output = `$cmd`; my $status = $?; - local $SIG{CHLD} = $sigchld; - chomp @output; return ($status, @output); @@ -363,7 +357,7 @@ Returns: while () { my $key; - while (not defined ($key = ReadKey -1)) { } + while (not defined ($key = ReadKey -1)) { } if ($key =~ /(\r|\n)/) { print "\n";