Cygwin: pipe: Restore blocking mode for cygwin process at startup.
- Set blocking mode properly at startup of cygwin process. This is needed if the cygwin process is executed from non-cygwin process.
This commit is contained in:
parent
451bbfb9f3
commit
90788821b7
|
@ -410,6 +410,9 @@ dtable::init_std_file_from_handle (int fd, HANDLE handle)
|
|||
{
|
||||
fhandler_pipe *fhp = (fhandler_pipe *) fh;
|
||||
fhp->set_pipe_buf_size ();
|
||||
/* Set read pipe always to nonblocking */
|
||||
fhp->set_pipe_non_blocking (fhp->get_device () == FH_PIPER ?
|
||||
true : fhp->is_nonblocking ());
|
||||
}
|
||||
|
||||
if (!fh->open_setup (openflags))
|
||||
|
|
Loading…
Reference in New Issue