]> err.no Git - util-linux/commitdiff
chrt: output buglet when reporting scheduling class
authorKarel Zak <kzak@redhat.com>
Tue, 3 Feb 2009 09:22:07 +0000 (10:22 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 3 Feb 2009 09:22:07 +0000 (10:22 +0100)
% chrt -i 0 ./a.out &
[1] 60479
% chrt -p 60479
pid 60479's current scheduling policy: SCHED_IDLE
SCHED_RR
pid 60479's current scheduling priority: 0

We have a spurious and incorrect SCHED_RR in there...

Address-Red-Hat-Bugzilla: #483706
Signed-off-by: Karel Zak <kzak@redhat.com>
schedutils/chrt.c

index 4f18693279f82ba9136270757ffac8320f0e4e15..dcd05240309a0f29f8cebbca560b9b670a6665ed 100644 (file)
@@ -97,6 +97,7 @@ static void show_rt_info(const char *what, pid_t pid)
                break;
        case SCHED_IDLE:
                printf("SCHED_IDLE\n");
+               break;
        case SCHED_RR:
                printf("SCHED_RR\n");
                break;