On Fri, 28 Jun 2002 23:08:26 +0200 31 <[EMAIL PROTECTED]> wrote: > Christoph Simon escribiu: > > >On Fri, 28 Jun 2002 13:44:01 +0200 > >31 <[EMAIL PROTECTED]> wrote: > >>¿Como puedo usar el O_NONBLOCK? ¿donde tengo que ponerlo? > >man fcntl(2); por ejemplo: > > if (fcntl (fd, F_SETFL, O_NONBLOCK)) > > perror ("fcntl"); > >Si abriste el fichero con fopen(3), puedes usar fileno(3) para > >descubrir el descriptor fd. > Es para lectura de un pipe, y que no se quede bloqueada si no hay nada > que leer en el pipe.
Funcionará de cualquier forma. Inténtalo. Hasta funciona con un socket. -- Christoph Simon [EMAIL PROTECTED] --- ^X^C q quit :q ^C end x exit ZZ ^D ? help . -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]