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
73b6dc2e
Commit
73b6dc2e
authored
18 years ago
by
Christopher J. Morrone
Browse files
Options
Downloads
Patches
Plain Diff
Do not try to use non-blocking IO on stdin.
parent
d2f219c7
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/api/step_io.c
+0
-12
0 additions, 12 deletions
src/api/step_io.c
with
0 additions
and
12 deletions
src/api/step_io.c
+
0
−
12
View file @
73b6dc2e
...
@@ -170,7 +170,6 @@ struct file_read_info {
...
@@ -170,7 +170,6 @@ struct file_read_info {
uint32_t
nodeid
;
uint32_t
nodeid
;
bool
eof
;
bool
eof
;
bool
was_blocking
;
};
};
...
@@ -720,12 +719,6 @@ create_file_read_eio_obj(int fd, uint32_t taskid, uint32_t nodeid,
...
@@ -720,12 +719,6 @@ create_file_read_eio_obj(int fd, uint32_t taskid, uint32_t nodeid,
info
->
header
.
ltaskid
=
(
uint16_t
)
-
1
;
info
->
header
.
ltaskid
=
(
uint16_t
)
-
1
;
info
->
eof
=
false
;
info
->
eof
=
false
;
if
(
fd_is_blocking
(
fd
))
{
fd_set_nonblocking
(
fd
);
info
->
was_blocking
=
true
;
}
else
{
info
->
was_blocking
=
false
;
}
eio
=
eio_obj_create
(
fd
,
&
file_read_ops
,
(
void
*
)
info
);
eio
=
eio_obj_create
(
fd
,
&
file_read_ops
,
(
void
*
)
info
);
return
eio
;
return
eio
;
...
@@ -748,11 +741,6 @@ static bool _file_readable(eio_obj_t *obj)
...
@@ -748,11 +741,6 @@ static bool _file_readable(eio_obj_t *obj)
}
}
if
(
obj
->
shutdown
==
true
)
{
if
(
obj
->
shutdown
==
true
)
{
debug3
(
" false, shutdown"
);
debug3
(
" false, shutdown"
);
/* if the file descriptor was in blocking mode before we set it
* to O_NONBLOCK, then set it back to blocking mode before
* closing */
if
(
info
->
was_blocking
)
fd_set_blocking
(
obj
->
fd
);
close
(
obj
->
fd
);
close
(
obj
->
fd
);
obj
->
fd
=
-
1
;
obj
->
fd
=
-
1
;
info
->
eof
=
true
;
info
->
eof
=
true
;
...
...
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