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

modify depending on gongjie's new comment

This commit is contained in:
hu-weihua
2016-03-03 00:48:16 -05:00
parent 3d016498ff
commit 50efb51743

View File

@@ -1112,7 +1112,7 @@ unless ($cmdlog_svrpid){
xCAT::MsgUtils->message("S","INFO xcatd: 'Command log writer' process $$ is trying to get port $cmdlog_port");
my $pid = <$cmdlogpidfile>;
if ($pid) {
kill 'USR2', $pid;
kill 'USR2', $pid;
}
close($cmdlogpidfile);
}
@@ -1140,10 +1140,8 @@ unless ($cmdlog_svrpid){
$cmdlog_logfile_umask = umask(0077);
unless (open ($cmdlogfile, ">>$cmdlog_logfile")) {
umask($cmdlog_logfile_umask);
xCAT::MsgUtils->trace(0,"E","xcatd: Can't open xcat command log file $cmdlog_logfile,command log process $$ stop.");
if($cmdlogsvrlistener){close($cmdlogsvrlistener);}
exit(0);
exit(1);
}
umask($cmdlog_logfile_umask);
select($cmdlogfile);