Mail Archives: cygwin/1998/03/17/21:23:52
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 -