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
a7a25e39
Commit
a7a25e39
authored
21 years ago
by
Mark Grondona
Browse files
Options
Downloads
Patches
Plain Diff
o slurm_send_rc_msg() now has return value
parent
0215309f
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
src/common/slurm_protocol_api.c
+2
-4
2 additions, 4 deletions
src/common/slurm_protocol_api.c
src/common/slurm_protocol_api.h
+1
-1
1 addition, 1 deletion
src/common/slurm_protocol_api.h
with
3 additions
and
5 deletions
src/common/slurm_protocol_api.c
+
2
−
4
View file @
a7a25e39
...
...
@@ -721,7 +721,7 @@ int slurm_unpack_slurm_addr_no_alloc(slurm_addr * slurm_address,
* IN request_msg - slurm_msg the request msg
* IN rc - the return_code to send back to the client
*/
void
slurm_send_rc_msg
(
slurm_msg_t
*
msg
,
int
rc
)
int
slurm_send_rc_msg
(
slurm_msg_t
*
msg
,
int
rc
)
{
slurm_msg_t
resp_msg
;
return_code_msg_t
rc_msg
;
...
...
@@ -733,7 +733,7 @@ void slurm_send_rc_msg(slurm_msg_t *msg, int rc)
resp_msg
.
data
=
&
rc_msg
;
/* send message */
slurm_send_node_msg
(
msg
->
conn_fd
,
&
resp_msg
);
return
slurm_send_node_msg
(
msg
->
conn_fd
,
&
resp_msg
);
}
/*
...
...
@@ -862,8 +862,6 @@ static int _send_recv_rc_msg(slurm_fd fd, slurm_msg_t *req, int *rc,
if
(
msg
.
msg_type
!=
RESPONSE_SLURM_RC
)
slurm_seterrno_ret
(
SLURM_UNEXPECTED_MSG_ERROR
);
verbose
(
"got rc msg"
);
*
rc
=
((
return_code_msg_t
*
)
msg
.
data
)
->
return_code
;
slurm_free_return_code_msg
(
msg
.
data
);
...
...
This diff is collapsed.
Click to expand it.
src/common/slurm_protocol_api.h
+
1
−
1
View file @
a7a25e39
...
...
@@ -375,7 +375,7 @@ int inline slurm_unpack_slurm_addr_no_alloc(slurm_addr * slurm_address,
* IN request_msg - slurm_msg the request msg
* IN rc - the return_code to send back to the client
*/
void
slurm_send_rc_msg
(
slurm_msg_t
*
request_msg
,
int
rc
);
int
slurm_send_rc_msg
(
slurm_msg_t
*
request_msg
,
int
rc
);
/* slurm_send_recv_controller_msg
* opens a connection to the controller, sends the controller a message,
...
...
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