[Git][NTPsec/ntpsec][master] remove -DHAVE_SCHED_SETSCHEDULER from build w/ doc
Matt Selsky
gitlab at mg.gitlab.com
Wed Aug 26 22:16:37 UTC 2020
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
563c5cc4 by James Browning at 2020-08-26T06:21:59-07:00
remove -DHAVE_SCHED_SETSCHEDULER from build w/ doc
- - - - -
3 changed files:
- docs/includes/ntpd-body.adoc
- ntpd/ntpd.c
- wscript
Changes:
=====================================
docs/includes/ntpd-body.adoc
=====================================
@@ -181,7 +181,7 @@ configuration file directive.
Process priority. This option takes an integer number as its argument.
+
To the extent permitted by the operating system, run +ntpd+ at the
-specified _sched_setscheduler(SCHED_FIFO)_ priority.
+specified _pthread_setschedparam(SCHED_FIFO)_ priority.
+-q+, +--quit+::
Set the time and quit. This option must not appear in combination with
=====================================
ntpd/ntpd.c
=====================================
@@ -434,7 +434,6 @@ set_process_priority(void)
: "Attempt to set priority"
));
# endif /* DEBUG */
-#ifdef HAVE_SCHED_SETSCHEDULER
if (need_priority) {
int pmax, pmin;
struct sched_param sched;
@@ -455,7 +454,6 @@ set_process_priority(void)
else
need_priority = false;
}
-#endif
if (need_priority)
msyslog(LOG_ERR, "INIT: set_process_priority: No way found to improve our priority");
}
=====================================
wscript
=====================================
@@ -617,7 +617,6 @@ int main(int argc, char **argv) {
('ntp_adjtime', ["sys/time.h", "sys/timex.h"]), # BSD
('ntp_gettime', ["sys/time.h", "sys/timex.h"]), # BSD
('res_init', ["netinet/in.h", "arpa/nameser.h", "resolv.h"]),
- ('sched_setscheduler', ["sched.h"]),
('strlcpy', ["string.h"]),
('strlcat', ["string.h"]),
# Hack. It's not a function, but this works.
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/563c5cc4b748f4b2cfa922e12b9fa59e07d46816
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/563c5cc4b748f4b2cfa922e12b9fa59e07d46816
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20200826/9f63cdf0/attachment-0001.htm>
More information about the vc
mailing list