Skip to content
This repository was archived by the owner on Mar 28, 2018. It is now read-only.

Commit f55b01a

Browse files
committed
cc-shim: Use stdin in blocking mode.
Setting stdin as non-blocking and trying to read till be we get a EGAIN ret value does not work in the terminal case. The tty passed by docker is set in raw mode, and reading stdin when poll indicates there is data always results in "Resource not available" error. Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
1 parent fb21ef1 commit f55b01a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

shim/shim.c

-4
Original file line numberDiff line numberDiff line change
@@ -645,10 +645,6 @@ main(int argc, char **argv)
645645
err_exit("sigaction");
646646
}
647647

648-
if ( !set_fd_nonblocking(STDIN_FILENO)) {
649-
exit(EXIT_FAILURE);
650-
}
651-
652648
add_pollfd(poll_fds, &nfds, STDIN_FILENO, POLLIN | POLLPRI);
653649

654650
add_pollfd(poll_fds, &nfds, shim.proxy_io_fd, POLLIN | POLLPRI);

0 commit comments

Comments
 (0)