On Fri, 2002-06-28 at 13:44, 31 wrote: > ¿Como puedo hacer en C que una llamada a read() no sea bloqueante? > En el man veo esto, pero no se donde o como lo tengo que definir. > > ERRORS > EINTR The call was interrupted by a signal before any > data was read. > > EAGAIN Non-blocking I/O has been selected using O_NONBLOCK > and no data was immediately available for reading. > > ¿Como puedo usar el O_NONBLOCK? ¿donde tengo que ponerlo? > tienes que usar el O_NONBLOCK al abrir el fichero.
saludos -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]