mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
Fix duplication detection https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3513429&group_id=17457
This commit is contained in:
@ -44,7 +44,7 @@ foreach $s (@sel) {
|
||||
push(@run, grep { $_->{'host'} eq $s } @servers);
|
||||
}
|
||||
}
|
||||
@run = &unique(@run);
|
||||
@run = grep { !$done{$_->{'id'}}++ } @run;
|
||||
@run || &error($text{'run_enone'});
|
||||
|
||||
&ui_print_header(undef, $text{'run_title'}, "");
|
||||
@ -63,7 +63,7 @@ foreach $s (@run) {
|
||||
pipe($rh, $wh);
|
||||
select($wh); $| = 1; select(STDOUT);
|
||||
if (!fork()) {
|
||||
# Do the install in a subprocess
|
||||
# Run the command in a subprocess
|
||||
close($rh);
|
||||
|
||||
&remote_foreign_require($s->{'host'}, "webmin",
|
||||
@ -95,7 +95,7 @@ foreach $s (@run) {
|
||||
close($rh);
|
||||
local $rv = &unserialise_variable($line);
|
||||
|
||||
local $d = $s->{'desc'} || $s->{'host'};
|
||||
local $d = $s->{'host'}.($s->{'desc'} ? " (".$s->{'desc'}.")" : "");
|
||||
|
||||
if (!$line) {
|
||||
# Comms error with subprocess
|
||||
|
Reference in New Issue
Block a user