Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
0a178a6b
Commit
0a178a6b
authored
21 years ago
by
Mark Grondona
Browse files
Options
Downloads
Patches
Plain Diff
o rename static reconfig/shutdown variables to have preceding `_'
parent
0b05bda4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/slurmd/slurmd.c
+7
-7
7 additions, 7 deletions
src/slurmd/slurmd.c
with
7 additions
and
7 deletions
src/slurmd/slurmd.c
+
7
−
7
View file @
0a178a6b
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment