diff options
-rw-r--r-- | gpsd.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1918,6 +1918,8 @@ int main(int argc, char *argv[]) #ifdef NTPSHM_ENABLE if (getuid() == 0) { errno = 0; + // nice() can ONLY succeed when run as root! + // do not even bother as non-root if (nice(NICEVAL) != -1 || errno == 0) gpsd_report (2, "Priority setting failed.\n"); (void)ntpshm_init(&context, nowait); |