]> err.no Git - util-linux/commit
chrt: add support for SCHED_RESET_ON_FORK
authorAdrian Knoth <adi@drcomp.erfurt.thur.de>
Tue, 2 Feb 2010 16:18:29 +0000 (17:18 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Feb 2010 17:16:05 +0000 (18:16 +0100)
commit0fefbedc72f5b8399be50ae0aad8eb9cb3b630a3
treefdb8a2b72cd5a26c50bb53672c7b2d47a58eadb8
parenta39ff47a185f23b370f8f5b535dfa69b263e22e3
chrt: add support for SCHED_RESET_ON_FORK

From 9262c9832134f8a33ac2ea2854dc6d20acc712d1 Mon Sep 17 00:00:00 2001
From: Adrian Knoth <adi@drcomp.erfurt.thur.de>
Date: Tue, 2 Feb 2010 16:57:23 +0100
Subject: [PATCH] Add support for SCHED_RESET_ON_FORK to chrt

SCHED_RESET_ON_FORK has been added in 2.6.31. If a thread has this flag
set, chrt reports "unknown" policy, which is confusing.

The patch adds support for this new flag. It will (can) only be applied
to SCHED_FIFO or SCHED_RR, so there's no need to catch the other
scheduling policies.

Signed-off-by: Adrian Knoth <adi@drcomp.erfurt.thur.de>
schedutils/chrt.c