summaryrefslogtreecommitdiff
path: root/driver_tsip.c
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2017-07-20 15:00:34 -0700
committerFred Wright <fw@fwright.net>2017-07-20 15:30:46 -0700
commit00c4d620859603a9bab4001f6c69fc213c73625d (patch)
treecf5abb04c021360bb92bf363d1c08265e833b7ea /driver_tsip.c
parent41d6fa9fb4e4665b4afbbd851eee188d596084ea (diff)
downloadgpsd-00c4d620859603a9bab4001f6c69fc213c73625d.tar.gz
Fixes gpscat raw-mode file-input termination.
When reading from a file in packetizer mode, gpscat correctly terminates at EOF. However, in raw mode it simply hung in a loop retrying the read. This change makes it exit on EOF. This change also removes the useless buffer append logic in raw mode, which was a leftover from the old code that attempted to break on newlines (removed by commit e4cbd2daf). TESTED: Ran gpscat in raw mode on all test/daemon log files, and observed proper termination. Tested with Python 2.7 and Python 3.5.
Diffstat (limited to 'driver_tsip.c')
0 files changed, 0 insertions, 0 deletions