This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
error setting pipe to non-blocking IO
- From: Andy Howell <AndyHowell at austin dot rr dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 17 Oct 2003 14:50:40 -0700
- Subject: error setting pipe to non-blocking IO
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 this, I get:
Pipe: No Error
Ioctl: Invalid argument
Any ideas?
Thanks,
Andy
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/