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
0a18b90f
Commit
0a18b90f
authored
21 years ago
by
jwindley
Browse files
Options
Downloads
Patches
Plain Diff
Don't report EOF as error
parent
fb15bacc
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/plugins/sched/prefix_courier.cpp
+6
-4
6 additions, 4 deletions
src/plugins/sched/prefix_courier.cpp
with
6 additions
and
4 deletions
src/plugins/sched/prefix_courier.cpp
+
6
−
4
View file @
0a18b90f
...
@@ -47,14 +47,16 @@ prefix_courier_t::receive( void )
...
@@ -47,14 +47,16 @@ prefix_courier_t::receive( void )
char
*
buf
;
char
*
buf
;
// * Read the packet size.
// * Read the packet size.
if
(
read_bytes
(
header
,
9
)
!=
9
)
{
if
(
courier_t
::
read_bytes
(
header
,
9
)
!=
9
)
{
debug
(
"prefix_courier::receive: malformed message header"
);
if
(
errno
!=
0
)
debug
(
"prefix_courier::receive: malformed header (wire)"
);
return
NULL
;
return
NULL
;
}
}
// * Convert to binary.
// * Convert to binary.
if
(
sscanf
(
header
,
"%ul"
,
&
size
)
!=
1
)
{
if
(
sscanf
(
header
,
"%ul"
,
&
size
)
!=
1
)
{
debug
(
"prefix_courier::receive: malformed message header"
);
if
(
errno
!=
0
)
debug
(
"prefix_courier::receive: malformed header (decode)"
);
return
NULL
;
return
NULL
;
}
}
...
@@ -63,7 +65,7 @@ prefix_courier_t::receive( void )
...
@@ -63,7 +65,7 @@ prefix_courier_t::receive( void )
xassert
(
buf
);
xassert
(
buf
);
// * Read the actual packet data.
// * Read the actual packet data.
if
(
read_bytes
(
buf
,
size
)
!=
size
)
{
if
(
courier_t
::
read_bytes
(
buf
,
size
)
!=
size
)
{
debug
(
"prefix_courier::receive: unable to receive fixed-length data"
);
debug
(
"prefix_courier::receive: unable to receive fixed-length data"
);
delete
[]
buf
;
delete
[]
buf
;
return
NULL
;
return
NULL
;
...
...
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