From 50efb517439b8e8aa664792902bbc1cac82320c8 Mon Sep 17 00:00:00 2001 From: hu-weihua Date: Thu, 3 Mar 2016 00:48:16 -0500 Subject: [PATCH] modify depending on gongjie's new comment --- xCAT-server/sbin/xcatd | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 1c8174c47..955db3908 100644 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -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);