On Thu, Feb 03, 2011 at 06:24:54PM -0700, Todd Millecam wrote: > When this infinite loop happens, what is the value of data? Also, is > > there any chance that read() is raising an exception that is being > > caught somewhere? Have you tried doing read with a specified buffer > > size (e.g., stream.read(4096) or something). > > > well, depending on which test case I'm running, it can either be just a > newline character, or a string. None of the strings are more than 200 > characters long, but whenever I do read with any value it just stays stuck > on it.
Something is definitely wrong if it reads the same value over and over. Can you give a simple reproducing case or the actual code you're using? -- Andrew McNabb http://www.mcnabbs.org/andrew/ PGP Fingerprint: 8A17 B57C 6879 1863 DE55 8012 AB4D 6098 8826 6868 -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list
