mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-11 05:31:14 -03:00
Mark stdin as nonblocking if we get EWOULDBLOCK, and before handing it off to child processes when either starting them or moving them to the foreground.
https://github.com/fish-shell/fish-shell/issues/176
This commit is contained in:
4
io.cpp
4
io.cpp
@@ -138,9 +138,7 @@ io_buffer_t *io_buffer_t::create(bool is_input, int fd)
|
||||
wperror(L"pipe");
|
||||
success = false;
|
||||
}
|
||||
else if (fcntl(buffer_redirect->pipe_fd[0],
|
||||
F_SETFL,
|
||||
O_NONBLOCK))
|
||||
else if (make_fd_nonblocking(buffer_redirect->pipe_fd[0]) != 0)
|
||||
{
|
||||
debug(1, PIPE_ERROR);
|
||||
wperror(L"fcntl");
|
||||
|
||||
Reference in New Issue
Block a user