]> 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>
Mon, 9 Feb 2009 10:17:21 +0000 (11:17 +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 92985c6e5bdbaa07f2343e1226803d3044d2a2de..1a2d05aecca69d30131ad8ff69ec8343ea5b32d3 100644 (file)
@@ -99,6 +99,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;