summaryrefslogtreecommitdiff
path: root/gpsmon.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-09 03:20:05 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-09 03:20:05 -0400
commitd471ea870e65222a0fced5130031218c2bf1ab14 (patch)
tree289272eb8700065cfaecd26c26404f7c105dd8ba /gpsmon.c
parent4ee2e712a50a47391ee9e4e05aa53be85748b6b0 (diff)
downloadgpsd-d471ea870e65222a0fced5130031218c2bf1ab14.tar.gz
Introduce a mode option so gpscotl can be less intrusive than gpsd.
Diffstat (limited to 'gpsmon.c')
-rw-r--r--gpsmon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsmon.c b/gpsmon.c
index ffa4109e..e8423680 100644
--- a/gpsmon.c
+++ b/gpsmon.c
@@ -615,7 +615,7 @@ int main(int argc, char **argv)
} else {
(void)strlcpy(session.gpsdata.dev.path, argv[optind],
sizeof(session.gpsdata.dev.path));
- if (gpsd_activate(&session) == -1) {
+ if (gpsd_activate(&session, O_PROBEONLY) == -1) {
gpsd_report(context.debug, LOG_ERROR,
"activation of device %s failed, errno=%d\n",
session.gpsdata.dev.path, errno);