Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/