Date: Mon, 10 Feb 2003 11:53:32 -0800 (PST) From: Lamont Granquist <lamont@scriptkiddie.org> To: freebsd-hackers@freebsd.org Subject: xmms + RTP_PRIO_REALTIME under -current Message-ID: <20030210114953.L29259-100000@coredump.scriptkiddie.org>
next in thread | raw e-mail | index | archive | help
I'm getting pops in xmms under -current. Awhile back the realtime
scheduling option for xmms was busted, so I wrote this wrapper script
around xmms. Am I doing the right thing here? Is there anything else I
could do to config -current to eliminate pops? Is -current going to get a
fully-preemptable kernel anytime soon?
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/rtprio.h>
int main(int argc, char *argv[]) {
struct rtprio rtp;
rtp.type = RTP_PRIO_REALTIME;
rtp.prio = 10;
if (rtprio(RTP_SET, 0, &rtp) != 0)
perror("rtprio");
setreuid(0,0);
execv("/usr/X11R6/bin/xmms", argv);
perror("execv");
}
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030210114953.L29259-100000>
