2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 02:30:21 +00:00

Merge pull request #2243 from chenglch/rflashprogress

Become process group leader when updating firmware
This commit is contained in:
zet809
2016-12-01 16:52:40 +08:00
committed by GitHub

View File

@@ -1924,6 +1924,11 @@ sub do_rflash_process {
# child
elsif ($pid == 0) {
unless (setpgrp()) {
xCAT::SvrUtils::sendmsg([ 1, "Faild to run setgprp for $$ process" ],
$callback, $node);
exit(1);
}
my $extra = $_[8];
my @exargs = @$extra;
my $programe = \$0;