From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26623 invoked by alias); 17 Oct 2003 22:20:02 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 26616 invoked from network); 17 Oct 2003 22:20:01 -0000 Received: from unknown (HELO esds.vss.fsi.com) (66.136.174.212) by sources.redhat.com with SMTP; 17 Oct 2003 22:20:01 -0000 Received: from eos.vss.fsi.com (eos [198.51.27.61]) by esds.vss.fsi.com (8.11.6+Sun/8.9.1) with ESMTP id h9HMK1s20091 for ; Fri, 17 Oct 2003 17:20:01 -0500 (CDT) Received: from localhost (ford@localhost) by eos.vss.fsi.com (8.11.6+Sun/8.11.6) with ESMTP id h9HMK1l22200 for ; Fri, 17 Oct 2003 17:20:01 -0500 (CDT) X-Authentication-Warning: eos.vss.fsi.com: ford owned process doing -bs Date: Sat, 18 Oct 2003 02:11:00 -0000 From: Brian Ford X-X-Sender: ford@eos To: cygwin@cygwin.com Subject: Re: error setting pipe to non-blocking IO In-Reply-To: Message-ID: References: <3F906430.5000100@austin.rr.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-10/txt/msg01160.txt.bz2 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); > > perror("Pipe: "); > > 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? -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444 -- 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/