delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-AmikaGuardian-Id: | mail5.speakeasy.net106642744723613646 |
X-AmikaGuardian-Category: | AN:Joke : 0.1 |
X-AmikaGuardian-Category: | AN:Pastime : 0.1 |
X-AmikaGuardian-Action: | Do Nothing() |
Message-ID: | <3F906430.5000100@austin.rr.com> |
Date: | Fri, 17 Oct 2003 14:50:40 -0700 |
From: | Andy Howell <AndyHowell AT austin DOT rr DOT com> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4.1) Gecko/20031008 |
X-Accept-Language: | en-us, en, ja |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |