summaryrefslogtreecommitdiffstats
path: root/schedutils
diff options
context:
space:
mode:
authorKarel Zak2011-08-02 14:29:03 +0200
committerKarel Zak2011-08-02 14:29:03 +0200
commitc150589fce0286a63ef7bd09bb2e2a561ccff7cb (patch)
tree09b951c1a1f7c130f631787510559fbb2d44c493 /schedutils
parentagetty: Fix IUTF8 flag (diff)
downloadkernel-qcow2-util-linux-c150589fce0286a63ef7bd09bb2e2a561ccff7cb.tar.gz
kernel-qcow2-util-linux-c150589fce0286a63ef7bd09bb2e2a561ccff7cb.tar.xz
kernel-qcow2-util-linux-c150589fce0286a63ef7bd09bb2e2a561ccff7cb.zip
chrt: silently ignore -R if unsupported
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'schedutils')
-rw-r--r--schedutils/chrt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/schedutils/chrt.c b/schedutils/chrt.c
index 58b71b534..d9dfd4dd1 100644
--- a/schedutils/chrt.c
+++ b/schedutils/chrt.c
@@ -235,11 +235,11 @@ int main(int argc, char **argv)
case 'f':
policy = SCHED_FIFO;
break;
-#ifdef SCHED_RESET_ON_FORK
case 'R':
+#ifdef SCHED_RESET_ON_FORK
policy_flag |= SCHED_RESET_ON_FORK;
- break;
#endif
+ break;
case 'i':
#ifdef SCHED_IDLE
policy = SCHED_IDLE;