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
d26c3581
Commit
d26c3581
authored
17 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
minor tweaks for clean build on OSX.
Minimally tested.
parent
7a2a6212
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
slurm/slurm.h.in
+3
-1
3 additions, 1 deletion
slurm/slurm.h.in
src/slurmctld/trigger_mgr.c
+4
-0
4 additions, 0 deletions
src/slurmctld/trigger_mgr.c
src/slurmd/slurmstepd/mgr.c
+4
-0
4 additions, 0 deletions
src/slurmd/slurmstepd/mgr.c
with
11 additions
and
1 deletion
slurm/slurm.h.in
+
3
−
1
View file @
d26c3581
...
...
@@ -84,9 +84,11 @@ BEGIN_C_DECLS
#if HAVE_INTTYPES_H
# include <inttypes.h> /* for uint16_t, uint32_t definitions */
#endif
#include <stdbool.h>
#include <stdio.h> /* for FILE definitions */
#include <sys/types.h> /* for uid_t definition */
#include <time.h> /* for time_t definitions */
#include <std
bool
.h>
#include <
uni
std.h>
#ifdef CRAPPY_COMPILER
/*
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/trigger_mgr.c
+
4
−
0
View file @
d26c3581
...
...
@@ -897,7 +897,11 @@ static void _trigger_run_program(trig_mgr_info_t *trig_in)
int
i
;
for
(
i
=
0
;
i
<
128
;
i
++
)
close
(
i
);
#ifdef SETPGRP_TWO_ARGS
setpgrp
(
0
,
0
);
#else
setpgrp
();
#endif
setsid
();
setuid
(
uid
);
setgid
(
gid
);
...
...
This diff is collapsed.
Click to expand it.
src/slurmd/slurmstepd/mgr.c
+
4
−
0
View file @
d26c3581
...
...
@@ -1736,7 +1736,11 @@ _run_script_as_user(const char *name, const char *path, slurmd_job_t *job,
}
chdir
(
job
->
cwd
);
#ifdef SETPGRP_TWO_ARGS
setpgrp
(
0
,
0
);
#else
setpgrp
();
#endif
execve
(
path
,
argv
,
env
);
error
(
"execve(): %m"
);
exit
(
127
);
...
...
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