Browse thread
Unix.read always returns 0 bytes
- James Lamanna
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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