On Mon, Feb 15, 2010 at 5:43 PM, I wrote: >> 2) It would be even less of a problem to do the following >> the specified number of times: >> -- detect the EoF >> -- close the file >> -- reopen the file and start reading again. >> >> This has the advantage that it works the same as lseek >> for regular disk files, and works a whole lot better >> for FIFO files. >> >> It also removes the need for the "sleep" and simplifies >> the scenario in item (1) above.
On 02/15/2010 10:36 AM, Tim Moore wrote: > That would work too. This is done. The patches for this can be found at http://gitorious.org/~jsd/fg/sport-simgear/commits/sport Note that libsgio.a now uses boost to provide thread-safe user-friendly error messages. This requires a couple of changes to Makefile.am files over on the FG side. The patches for this are available separately: http://gitorious.org/~jsd/fg/sport-model/commits/sport =============== Bottom line: I believe this fixes all the long-standing bugs in SGFile::readline ... and implements the entire feature set, including repeat. I have not checked the corresponding code in other files such as sg_socket.cxx. I would not be surprised to learn that there exist other bugs similar to the longstanding sg_file.cxx bugs. ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel