summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-27 15:14:43 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-27 15:14:43 -0500
commitae654f81a3bbc932d9f42b7bb6c52a84c715a4e0 (patch)
tree5e5d334cd3419cb7e95077d887a383cf8b27a5db /gpsd.c
parent9b5f8efb899eb1baa64562dd0f94c3025c6c2020 (diff)
downloadgpsd-ae654f81a3bbc932d9f42b7bb6c52a84c715a4e0.tar.gz
Investigating ways to get rid of CLOSE_DELAY in the test framework...
...actually revealed a bug - device-shutdown messages getting lost on the way out to the test clients. This set of changes mostly fixes it. Some glitches remain; this state of things passes all regression tests but attempting to get rid of what now ought to be unnecessary code in fake.py does not pass. To be continued...
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index 22fe14f9..ade014c9 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -2276,6 +2276,7 @@ int main(int argc, char *argv[])
adjust_max_fd(device->gpsdata.gps_fd, false);
break;
case DEVICE_ERROR:
+ case DEVICE_EOF:
deactivate_device(device);
break;
default: