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
fe015bfc
Commit
fe015bfc
authored
22 years ago
by
tewk
Browse files
Options
Downloads
Patches
Plain Diff
Little fixes
signal restoration now occurs in socket_impl
parent
f19e3432
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_errno.h
+1
-1
1 addition, 1 deletion
src/common/slurm_protocol_errno.h
src/common/slurm_protocol_socket_implementation.c
+9
-2
9 additions, 2 deletions
src/common/slurm_protocol_socket_implementation.c
with
10 additions
and
3 deletions
src/common/slurm_protocol_errno.h
+
1
−
1
View file @
fe015bfc
...
...
@@ -15,7 +15,7 @@
#define SLURM_PROTOCOL_VERSION_ERROR -1910
/* _info.c/ocommuncation layer RESPONSE_SLURM_RC message codes */
#define SLURM_NO_CHANGE_IN_DATA
10
0
#define SLURM_NO_CHANGE_IN_DATA
-192
0
/* job_mgr.c/job_create */
#define ESLURM_INVALID_PARTITION_SPECIFIED -2000
...
...
This diff is collapsed.
Click to expand it.
src/common/slurm_protocol_socket_implementation.c
+
9
−
2
View file @
fe015bfc
...
...
@@ -102,8 +102,14 @@ ssize_t _slurm_msg_sendto ( slurm_fd open_fd, char *buffer , size_t size , uint3
char
*
size_buffer
=
size_buffer_temp
;
unsigned
int
size_buffer_len
=
8
;
struct
sigaction
newaction
;
struct
sigaction
oldaction
;
newaction
.
sa_handler
=
SIG_IGN
;
/* ignore SIGPIPE so that send can return a error code if the other side closes the socket */
signal
(
SIGPIPE
,
SIG_IGN
);
//signal(SIGPIPE, SIG_IGN);
sigaction
(
SIGPIPE
,
&
newaction
,
&
oldaction
);
pack32
(
size
,
(
void
**
)
&
size_buffer
,
&
size_buffer_len
)
;
...
...
@@ -122,7 +128,8 @@ ssize_t _slurm_msg_sendto ( slurm_fd open_fd, char *buffer , size_t size , uint3
return
SLURM_PROTOCOL_ERROR
;
}
signal
(
SIGPIPE
,
SIG_DFL
);
//signal(SIGPIPE, SIG_DFL);
sigaction
(
SIGPIPE
,
&
oldaction
,
&
newaction
);
return
send_len
;
}
...
...
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