summaryrefslogtreecommitdiff
path: root/gps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2004-08-24 04:36:48 +0000
committerEric S. Raymond <esr@thyrsus.com>2004-08-24 04:36:48 +0000
commitd73d62094f43ec4ebc4b87c8692899dbf4311a91 (patch)
treeab4c1a6b8ff9c2e405f3010218481208d435f45d /gps.c
parent5d12d379b518af0216ec539532c4f9090024fe95 (diff)
downloadgpsd-d73d62094f43ec4ebc4b87c8692899dbf4311a91.tar.gz
SIGHUP resets the daeon.
Diffstat (limited to 'gps.c')
-rw-r--r--gps.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gps.c b/gps.c
index d3706adc..fa86d3d2 100644
--- a/gps.c
+++ b/gps.c
@@ -442,7 +442,10 @@ int main(int argc, char *argv[])
*/
gpsd_fd = gps_open(&gpsdata, NULL, NULL);
if (gpsd_fd < 0)
+ {
+ fprintf(stderr, "gps: no gpsd running.\n");
exit(2);
+ }
lxbApp = XtVaAppInitialize(&app, "gps.ad", NULL, 0, &argc, argv, fallback_resources, NULL);