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
ee8e2c53
Commit
ee8e2c53
authored
16 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
added resetting of exit_code so we can allow mistakes
parent
67ef9cfe
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/sacctmgr/sacctmgr.c
+11
-1
11 additions, 1 deletion
src/sacctmgr/sacctmgr.c
with
11 additions
and
1 deletion
src/sacctmgr/sacctmgr.c
+
11
−
1
View file @
ee8e2c53
...
...
@@ -72,6 +72,7 @@ main (int argc, char *argv[])
int
error_code
=
SLURM_SUCCESS
,
i
,
opt_char
,
input_field_count
;
char
**
input_fields
;
log_options_t
opts
=
LOG_OPTS_STDERR_ONLY
;
int
local_exit_code
=
0
;
int
option_index
;
static
struct
option
long_options
[]
=
{
...
...
@@ -185,8 +186,17 @@ main (int argc, char *argv[])
if
(
error_code
||
exit_flag
)
break
;
error_code
=
_get_command
(
&
input_field_count
,
input_fields
);
/* This is here so if someone made a mistake we allow
* them to fix it and let the process happen since there
* are checks for global exit_code we need to reset it.
*/
if
(
exit_code
)
{
local_exit_code
=
exit_code
;
exit_code
=
0
;
}
}
if
(
local_exit_code
)
exit_code
=
local_exit_code
;
acct_storage_g_close_connection
(
&
db_conn
);
slurm_acct_storage_fini
();
exit
(
exit_code
);
...
...
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