diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-16 10:20:18 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-16 20:08:57 -0400 |
commit | ac5ab2343e93ac141460ab23954ea53ba66517fb (patch) | |
tree | caa74f0bf39fd99ade39293a29ff4badda11d47b /ntpshm.h | |
parent | e8304a299aceb9b1cc7b6136d17f456872250ada (diff) | |
download | gpsd-ac5ab2343e93ac141460ab23954ea53ba66517fb.tar.gz |
Attempted fix for a close/reopen bug involvinf NMEA2000.
This was reported on gosd-users by Vignesh Krishnan <Krishnan_Vignesh@cat.com>:
> For the nmea2000 bug . I connect using gpsd control socket
>
> ./gpsd -n -F /tmp/control_sock
>
> Adding source is possible
> +nmea2000://can1
>
> Removing sourc is also possible with
> -nmea2000://can1
>
> Readding the source is not possible with
> +nmea2000://can1
>
> This is because the there is an array which stores the list of nmea
> devices. That is not cleared on removed. So adding the second time results
> in device exist error when actually device does not exist.
To address this, the driver close() method tries to zero the proper
array location.
All regression tests pass.
Diffstat (limited to 'ntpshm.h')
0 files changed, 0 insertions, 0 deletions