diff options
author | Craig Small <csmall@enc.com.au> | 2012-10-30 21:36:04 +1100 |
---|---|---|
committer | Craig Small <csmall@enc.com.au> | 2012-10-30 21:36:04 +1100 |
commit | ff6c8aad3e0299f92fe2c0d527fe25788f32eb7f (patch) | |
tree | 4f0e0265e6771621abb882b1f0f7177b4bbdd042 | |
parent | 0c74162049755438c181966355f0a56818fc01e7 (diff) | |
download | procps-ng-ff6c8aad3e0299f92fe2c0d527fe25788f32eb7f.tar.gz |
Added debian patch for kfreebsd bug 674785
-rw-r--r-- | testsuite/ps.test/test-schedbatch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuite/ps.test/test-schedbatch.c b/testsuite/ps.test/test-schedbatch.c index 20cf296..9b4d334 100644 --- a/testsuite/ps.test/test-schedbatch.c +++ b/testsuite/ps.test/test-schedbatch.c @@ -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); |