Re: error setting pipe to non-blocking IO

2003-10-27 Thread Brian Ford
This should now be supported in the latest snapshot available at: http://www.cygwin.com/snapshots Please test and confirm if you are so inclined. Thanks. On Fri, 17 Oct 2003, Andy Howell wrote: > Brian Ford wrote: > > Andy Howell wrote: > >>ioctl(pipefd[0], FIONBIO, &n); > >> > > use: > >

Re: error setting pipe to non-blocking IO

2003-10-17 Thread Andy Howell
Brian Ford wrote: ioctl(pipefd[0], FIOBIO, &n); use: fcntl(pipefd[0], F_SETFL, O_NONBLOCK); instead. PTC for FIOBIO, although I can't even find what header that's in? fcntl did the trick. Thanks. FIONBIO come from sys/termios.h. I mis-spelled it in my message. Thanks again, Andy

Re: error setting pipe to non-blocking IO

2003-10-17 Thread Brian Ford
Actually, it looks like this might work. YMMV On Fri, 17 Oct 2003, Brian Ford wrote: > On Fri, 17 Oct 2003, Andy Howell wrote: > > > I am trying to setup a pipe to do non-blocking IO: > > > > int main() > > { > > int pipefd[2]; > > int n; > > n = 1; > > > > pipe(pipefd); > > p

Re: error setting pipe to non-blocking IO

2003-10-17 Thread Brian Ford
On Fri, 17 Oct 2003, Andy Howell wrote: > I am trying to setup a pipe to do non-blocking IO: > > int main() > { > int pipefd[2]; > int n; > n = 1; > > pipe(pipefd); > perror("Pipe: "); > ioctl(pipefd[0], FIOBIO, &n); > perror("Ioctl: "); > } > > When I run