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
31fff546
Commit
31fff546
authored
20 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Modify srun to forward SIGTERM.
parent
451eb350
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+1
-0
1 addition, 0 deletions
NEWS
src/srun/signals.c
+1
-5
1 addition, 5 deletions
src/srun/signals.c
with
2 additions
and
5 deletions
NEWS
+
1
−
0
View file @
31fff546
...
@@ -11,6 +11,7 @@ documents those changes that are of interest to users and admins.
...
@@ -11,6 +11,7 @@ documents those changes that are of interest to users and admins.
at termination
at termination
-- set job's start_time and end_time = now rather than leaving zero if
-- set job's start_time and end_time = now rather than leaving zero if
they fail to execute
they fail to execute
-- modify srun to forward SIGTERM
* Changes in SLURM 0.4.0-pre4
* Changes in SLURM 0.4.0-pre4
=============================
=============================
...
...
This diff is collapsed.
Click to expand it.
src/srun/signals.c
+
1
−
5
View file @
31fff546
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
* Static list of signals to block in srun:
* Static list of signals to block in srun:
*/
*/
static
int
srun_sigarray
[]
=
{
static
int
srun_sigarray
[]
=
{
SIGINT
,
SIGQUIT
,
SIGTSTP
,
SIGCONT
,
SIGINT
,
SIGQUIT
,
SIGTSTP
,
SIGCONT
,
SIGTERM
,
SIGALRM
,
SIGUSR1
,
SIGUSR2
,
SIGPIPE
,
0
SIGALRM
,
SIGUSR1
,
SIGUSR2
,
SIGPIPE
,
0
};
};
...
@@ -102,7 +102,6 @@ sig_setup_sigmask(void)
...
@@ -102,7 +102,6 @@ sig_setup_sigmask(void)
if
(
xsignal_block
(
srun_sigarray
)
<
0
)
if
(
xsignal_block
(
srun_sigarray
)
<
0
)
return
SLURM_ERROR
;
return
SLURM_ERROR
;
xsignal
(
SIGTERM
,
&
_sigterm_handler
);
xsignal
(
SIGHUP
,
&
_sigterm_handler
);
xsignal
(
SIGHUP
,
&
_sigterm_handler
);
return
SLURM_SUCCESS
;
return
SLURM_SUCCESS
;
...
@@ -182,9 +181,6 @@ fwd_signal(job_t *job, int signo)
...
@@ -182,9 +181,6 @@ fwd_signal(job_t *job, int signo)
static
void
static
void
_sigterm_handler
(
int
signum
)
_sigterm_handler
(
int
signum
)
{
{
if
(
signum
==
SIGTERM
)
{
pthread_exit
(
0
);
}
}
}
static
void
static
void
...
...
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