Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rob Latham
MPICH-BlueGene
Commits
2b1f35d8
Commit
2b1f35d8
authored
Nov 30, 2012
by
Pavan Balaji
Browse files
[svn-r10699] Improve the check for a valid stdin.
No reviewer.
parent
c241fa6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pm/hydra/tools/demux/demux.c
View file @
2b1f35d8
...
...
@@ -235,19 +235,7 @@ HYD_status HYDT_dmxi_stdin_valid(int *out)
}
#endif
/* SIGTTIN and HAVE_ISATTY */
/* FIXME: The below read() check for STDIN validity is somehow
* interfering in the case where the application is run in the
* background, but expects some STDIN. The correct behavior is to
* close the STDIN socket for the application in that
* case. However, this seems to hang. I'm still investigating this
* case. In the meanwhile, I have commented out this check. PLEASE
* DO NOT DELETE. All other cases dealing with STDIN seem to be
* working correctly. */
#if 0
ret
=
read
(
STDIN_FILENO
,
NULL
,
0
);
#else
ret
=
0
;
#endif
if
(
ret
<
0
&&
errno
==
EINTR
&&
got_sigttin
)
*
out
=
0
;
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment