delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/03/17/21:23:52

From: genesis AT hermes9 DOT cst DOT cnes DOT fr (Utilisateur genesis)
Subject: Pipes on Windows with Cygwin
17 Mar 1998 21:23:52 -0800 :
Message-ID: <199803161640.RAA13545.cygnus.gnu-win32@hermes4.cst.cnes.fr>
To: gnu-win32 AT cygnus DOT com
Cc: genesis AT hermes9 DOT cst DOT cnes DOT fr

Hy everybody,

I try to associate a procedure callback with a pipe.
I would invoke a procedure whenever Inputs becomes possible on a pipe.

I try to use select(), because I thought this function blocked until Inputs becomes possible, but it doesn't block and it returns always n=-1.

     int fd[2];
     int n;

     pipe(fd);
     FD_ZERO (&readfd);
     FD_SET (fd[0] &readfd);
     nb = fd[0] + 1;
     n = select(nb, &readfd, NULL , NULL, NULL); 

Is it possible on Windows to trap pipe Inputs with GNU-WIN32 B18 or using WIN32 API ?

Thanks for your help.

Jean-Luc CAMES
 

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019