summaryrefslogtreecommitdiff
path: root/gpsctl.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 /gpsctl.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 'gpsctl.c')
-rw-r--r--gpsctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpsctl.c b/gpsctl.c
index dc731b1c..1bcab1fa 100644
--- a/gpsctl.c
+++ b/gpsctl.c
@@ -688,6 +688,10 @@ int main(int argc, char **argv)
gpsd_report(context.debug, LOG_WARN,
"device error, bailing out.\n");
exit(EXIT_FAILURE);
+ case DEVICE_EOF:
+ gpsd_report(context.debug, LOG_WARN,
+ "device signed off, bailing out.\n");
+ exit(EXIT_SUCCESS);
default:
break;
}