diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2004-08-24 04:36:48 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2004-08-24 04:36:48 +0000 |
commit | d73d62094f43ec4ebc4b87c8692899dbf4311a91 (patch) | |
tree | ab4c1a6b8ff9c2e405f3010218481208d435f45d /gps.c | |
parent | 5d12d379b518af0216ec539532c4f9090024fe95 (diff) | |
download | gpsd-d73d62094f43ec4ebc4b87c8692899dbf4311a91.tar.gz |
SIGHUP resets the daeon.
Diffstat (limited to 'gps.c')
-rw-r--r-- | gps.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |