diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-19 11:32:35 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-19 11:32:35 -0400 |
commit | 93843896f54f00a180ab16efc202f0f64e6b47e3 (patch) | |
tree | b1b43ecfd8c5dba2f1a2bf3878ffbfe6aa560e4a /gpsd.c | |
parent | 316162626e183918010eecbcdf57d3029de9b1a7 (diff) | |
download | gpsd-93843896f54f00a180ab16efc202f0f64e6b47e3.tar.gz |
Documentation, comment, and HOWTO updates.
Diffstat (limited to 'gpsd.c')
-rw-r--r-- | gpsd.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1952,6 +1952,11 @@ int main(int argc, char *argv[]) if (nice(NICEVAL) == -1 && errno != 0) gpsd_report(context.debug, LOG_INF, "NTPD Priority setting failed.\n"); } + /* + * By initializing before we drop privileges, we guarantee that even + * hotplugged devices added *after* we drop privileges will be able + * to use segments 0 and 1. + */ (void)ntpshm_init(&context, NOWAIT); #endif /* NTPSHM_ENABLE */ |