diff options
author | Karel Zak | 2011-08-02 14:29:03 +0200 |
---|---|---|
committer | Karel Zak | 2011-08-02 14:29:03 +0200 |
commit | c150589fce0286a63ef7bd09bb2e2a561ccff7cb (patch) | |
tree | 09b951c1a1f7c130f631787510559fbb2d44c493 /schedutils | |
parent | agetty: Fix IUTF8 flag (diff) | |
download | kernel-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.c | 4 |
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; |