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
7c969dd2
Commit
7c969dd2
authored
17 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
svn merge -r11406:11424
https://eris.llnl.gov/svn/slurm/branches/slurm-1.1
parent
467a2078
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
NEWS
+1
-1
1 addition, 1 deletion
NEWS
src/plugins/sched/wiki2/event.c
+5
-5
5 additions, 5 deletions
src/plugins/sched/wiki2/event.c
src/slurmctld/controller.c
+7
-4
7 additions, 4 deletions
src/slurmctld/controller.c
with
13 additions
and
10 deletions
NEWS
+
1
−
1
View file @
7c969dd2
...
...
@@ -309,7 +309,7 @@ documents those changes that are of interest to users and admins.
- Set supplimental groups for SlurmUser in slurmctld daemon, from
Anne Marie Wunderlin, Bull.
- In jobcomp/script: Add ACCOUNT and PROCS (count) to enviromnemt
variables set. Fix bug that prevented U
P
D and JOBID from being
variables set. Fix bug that prevented U
I
D and JOBID from being
overwritten.
* Changes in SLURM 1.1.34
...
...
This diff is collapsed.
Click to expand it.
src/plugins/sched/wiki2/event.c
+
5
−
5
View file @
7c969dd2
...
...
@@ -101,7 +101,7 @@ static void _close_fd(void)
* event_notify - Notify Moab of some event
* event_code IN - message code to send Moab
* 1234 - job state change
*
TBD
- partition state change
*
1235
- partition state change
* desc IN - event description
* RET 0 on success, -1 on failure
*/
...
...
@@ -116,15 +116,15 @@ extern int event_notify(int event_code, char *desc)
return
0
;
}
if
(
event_code
==
1234
)
{
if
(
event_code
==
1234
)
{
/* job change */
if
(
job_aggregation_time
&&
(
difftime
(
now
,
last_notify_time
)
<
job_aggregation_time
))
{
debug
(
"wiki event notification already sent recently"
);
return
0
;
}
event_msg
=
"1234
\0
"
;
}
else
if
(
event_code
==
5
)
{
/*
actual value TBD
*/
event_msg
=
"
5
\0
"
;
/* actual value TBD */
event_msg
=
"1234"
;
}
else
if
(
event_code
==
123
5
)
{
/*
configuration change
*/
event_msg
=
"
1235"
;
}
else
{
error
(
"event_notify: invalid event code: %d"
,
event_code
);
return
-
1
;
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/controller.c
+
7
−
4
View file @
7c969dd2
...
...
@@ -199,12 +199,15 @@ int main(int argc, char *argv[])
_init_pidfile
();
/* Initialize supplementary group ID list for SlurmUser */
if
(
initgroups
(
slurmctld_conf
.
slurm_user_name
,
gid_from_string
(
slurmctld_conf
.
slurm_user_name
)))
if
((
getuid
()
==
0
)
&&
(
slurmctld_conf
.
slurm_user_id
!=
getuid
())
&&
initgroups
(
slurmctld_conf
.
slurm_user_name
,
gid_from_string
(
slurmctld_conf
.
slurm_user_name
)))
{
error
(
"initgroups: %m"
);
}
if
((
slurmctld_conf
.
slurm_user_id
!=
getuid
())
&&
(
setuid
(
slurmctld_conf
.
slurm_user_id
)))
{
if
((
slurmctld_conf
.
slurm_user_id
!=
getuid
())
&&
(
setuid
(
slurmctld_conf
.
slurm_user_id
)))
{
fatal
(
"Can not set uid to SlurmUser(%d): %m"
,
slurmctld_conf
.
slurm_user_id
);
}
...
...
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