On 2000-Mar-09 10:05:21 +1100, Peter Dufault <[EMAIL PROTECTED]> wrote:
>There's no difference between rtprio and P1003.1B scheduling other than
>the name. rtprio is the same as P1003.1B "SCHED_RR".
I wasn't aware of that.
>I'd like to remove the rtprio call from ntpd. I think we ought to do
>it now before 4.0 ships.
Given there is a known a priority inversion bug related to realtime
(or idle) scheduling, it would seem wise not to use it in any system
utilities. The relevant patch would appear to be (untested):
--- /usr/src/usr.sbin/ntp/config.h Tue Feb 1 13:56:05 2000
+++ /tmp/config.h Thu Mar 9 11:46:11 2000
@@ -619,10 +619,10 @@
#define HAVE_RANDOM 1
/* Define if you have the rtprio function. */
-#define HAVE_RTPRIO 1
+/* #undef HAVE_RTPRIO */
/* Define if you have the sched_setscheduler function. */
-#define HAVE_SCHED_SETSCHEDULER 1
+/* #undef HAVE_SCHED_SETSCHEDULER */
/* Define if you have the setlinebuf function. */
#define HAVE_SETLINEBUF 1
Peter
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message