English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Unix.read always returns 0 bytes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-11-06 (01:11)
From: James Lamanna <jamesl@a...>
Subject: Unix.read always returns 0 bytes
I just recently installed ocaml3.08.0 on a new Athlon64 system under a 2.6.9 linux kernel.
I'm trying to read from a file descriptor provided by the Linux event interface.
However, I've noticed that once I send one event (from a joystick in this case), Unix.read continually
returns 0 bytes for forever (select() even returns that the descriptor can be read).

The corresponding C program does not exhibit this behavior.

Any suggestions/fixes on why Ocaml is doing this?

Thank you.

Please CC me for I am not subscribed.

James Lamanna