Added debian patch for kfreebsd bug 674785

This commit is contained in:
Craig Small 2012-10-30 21:36:04 +11:00
parent 0c74162049
commit ff6c8aad3e
1 changed files with 2 additions and 0 deletions

View File

@ -30,9 +30,11 @@ int main(int argc, const char *argv[])
nice = atoi(argv[1]);
}
sp.sched_priority = 0;
#ifdef SCHED_BATCH
if (sched_setscheduler(0, SCHED_BATCH, &sp)) {
perror("sched_setscheduler(0,SCHED_BATCH,{.sched_priority=0}");
}
#endif /* SCHED_BATCH */
if (setpriority(PRIO_PROCESS, 0, nice) || errno) {
(void)snprintf(msg, sizeof(msg),
"setpriority(PRIO_PROCESS, 0, %d)", nice);