gpsd-commit-watch
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-commit-watch] [SCM] GPSD branch, master, updated. release-3.14-502


From: Eric S. Raymond
Subject: [gpsd-commit-watch] [SCM] GPSD branch, master, updated. release-3.14-502-g967c40b
Date: Sun, 31 May 2015 14:38:39 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GPSD".

The branch, master has been updated
       via  967c40b2f75321ca93408fde1f577e69f501cfc7 (commit)
      from  557f30295be92d75fafff883a212933d74da46e5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 967c40b2f75321ca93408fde1f577e69f501cfc7
Author: Eric S. Raymond <address@hidden>
Date:   Sun May 31 10:37:20 2015 -0400

    Free a GPS if it fails to activate on awakening. Fixes crash-exit bug.
    
    Modified version of a patch by "Brian T (gmail)" <address@hidden>.
    He reports:
    
    Using GPSd 3.14, if it is told to read TTY device, and then a USB GPS device
    is added, and then the USB device is removed, GPSd exits.  I had seen others
    talk about this but never found an answer.  The work around I found was the
    attached patch.    I had it as a new command line option, but removed that
    part after reading the hacking guidelines.
    
    Tested this way:
    
    Device on /dev/ttyS4
    gpsdctl add /dev/ttyUSB1
    GPSd can be seen polling both devices
    Physically remove USB device
    GPSd continues processing ttyS4, removes ttyUSB1
    
    Device on /dev/ttyS4
    Add device on /dev/ttyUSB1
    gpsdctl remove /dev/ttyS4
    Physically remove USB device
    GPSd waits on select()
    gpsdctl add /dev/ttyS4
    GPSd starts processing ttyS4, removes ttyUSB1
    Insert USB device
    gpsdctl add /dev/ttyUSB1
    GPSd polls both devices
    
    I did notice that if USB1 is the last device left in the list, and the USB 
is
    pulled, GPSd does not syslog the message it was removed until a new device
    (like ttyS4) is added back in.  Then the syslog message shows up.
    
    The reason for this is some embedded cellular modules have embedded GPS.
    Sometimes the modules reset without notice, so the device is gone from the 
USB
    stack before a udev script can catch it and send a "gpsdctl remove xxxx", 
and
    then GPSd exits.

-----------------------------------------------------------------------

Summary of changes:
 gpsd.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GPSD



reply via email to

[Prev in Thread] Current Thread [Next in Thread]