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
a0c1d0fb
Commit
a0c1d0fb
authored
22 years ago
by
tewk
Browse files
Options
Downloads
Patches
Plain Diff
Added general kill_task method
parent
f2499bf5
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/task_mgr.c
+4
-4
4 additions, 4 deletions
src/slurmd/task_mgr.c
with
4 additions
and
4 deletions
src/slurmd/task_mgr.c
+
4
−
4
View file @
a0c1d0fb
...
...
@@ -25,7 +25,7 @@
/* global variables */
/* prototypes */
int
kill_task
(
task_t
*
task
)
;
int
kill_task
(
task_t
*
task
,
int
signal
)
;
int
interconnect_init
(
launch_tasks_request_msg_t
*
launch_msg
);
int
fan_out_task_launch
(
launch_tasks_request_msg_t
*
launch_msg
);
...
...
@@ -242,15 +242,15 @@ int kill_tasks ( kill_tasks_msg_t * kill_task_msg )
task_t
*
task_ptr
=
job_step_ptr
->
head_task
;
while
(
task_ptr
!=
NULL
)
{
kill_task
(
task_ptr
)
;
kill_task
(
task_ptr
,
kill_task_msg
->
signal
)
;
task_ptr
=
task_ptr
->
next
;
}
return
error_code
;
}
int
kill_task
(
task_t
*
task
)
int
kill_task
(
task_t
*
task
,
int
signal
)
{
return
kill
(
task
->
task_start
.
exec_pid
,
SIGKILL
)
;
return
kill
(
task
->
task_start
.
exec_pid
,
signal
)
;
}
int
reattach_tasks_streams
(
reattach_tasks_streams_msg_t
*
req_msg
)
...
...
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