This is the mail archive of the
mailing list for the Cygwin project.
More on pipes and O_NONBLOCK
- From: Kandziora Jan <jan dot kandziora at siemens dot com>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Fri, 2 Aug 2002 15:17:23 +0200
- Subject: More on pipes and O_NONBLOCK
It's been a while since I tried to use a cygwin pipe with nonblocking
I tried it with
perror("input stream can not be set to nonblocking mode");
perror("output stream can not be set to nonblocking mode");
It worked for reading from a piped stdin, but not for writing, although the
snipped above reported no error. Instead, the write on a piped stdout
writing 12288 Bytes.
Now I read in a Win32 API Book that WIN32 APIs WriteFile() to any pipe is
always blocking. - Huh? -
If that's true, and Cygwin uses WIN32 API for Pipes, the second fcntl() has
to fail if the
descriptor belongs to a pipe, hasn't it? At least that behaviour should be
maybe in the "Implementation Details" section in the Cygwin API
What do you think?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html