Skip to content
Snippets Groups Projects
Commit 0a178a6b authored by Mark Grondona's avatar Mark Grondona
Browse files

o rename static reconfig/shutdown variables to have preceding `_'

parent 0b05bda4
No related branches found
No related tags found
No related merge requests found
...@@ -89,8 +89,8 @@ static pthread_cond_t active_cond = PTHREAD_COND_INITIALIZER; ...@@ -89,8 +89,8 @@ static pthread_cond_t active_cond = PTHREAD_COND_INITIALIZER;
/* /*
* static shutdown and reconfigure flags: * static shutdown and reconfigure flags:
*/ */
static sig_atomic_t shutdown = 0; static sig_atomic_t _shutdown = 0;
static sig_atomic_t reconfig = 0; static sig_atomic_t _reconfig = 0;
static void _term_handler(int); static void _term_handler(int);
static void _hup_handler(int); static void _hup_handler(int);
...@@ -202,16 +202,16 @@ _msg_engine() ...@@ -202,16 +202,16 @@ _msg_engine()
slurm_addr cli; slurm_addr cli;
while (1) { while (1) {
if (shutdown) if (_shutdown)
break; break;
again: again:
if ((sock = slurm_accept_msg_conn(conf->lfd, &cli)) < 0) { if ((sock = slurm_accept_msg_conn(conf->lfd, &cli)) < 0) {
if (errno == EINTR) { if (errno == EINTR) {
if (shutdown) { if (_shutdown) {
verbose("got shutdown request"); verbose("got shutdown request");
break; break;
} }
if (reconfig) { if (_reconfig) {
_reconfigure(); _reconfigure();
verbose("got reconfigure request"); verbose("got reconfigure request");
} }
...@@ -763,14 +763,14 @@ static void ...@@ -763,14 +763,14 @@ static void
_term_handler(int signum) _term_handler(int signum)
{ {
if (signum == SIGTERM || signum == SIGINT) if (signum == SIGTERM || signum == SIGINT)
shutdown = 1; _shutdown = 1;
} }
static void static void
_hup_handler(int signum) _hup_handler(int signum)
{ {
if (signum == SIGHUP) if (signum == SIGHUP)
reconfig = 1; _reconfig = 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment