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:
> >
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
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
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
4 matches
Mail list logo