]> err.no Git - util-linux/commit
chrt: add --reset-on-fork
authorKarel Zak <kzak@redhat.com>
Tue, 2 Feb 2010 20:24:52 +0000 (21:24 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 2 Feb 2010 20:28:45 +0000 (21:28 +0100)
commitcdfb1e88228c10c28f8bfe0f4b0ff1b3b06d1ed4
treedcd67c6a427dd972919823af79e5b81ecfbaa7e5
parent0fefbedc72f5b8399be50ae0aad8eb9cb3b630a3
chrt: add --reset-on-fork

This new option allows to set SCHED_RESET_ON_FORK flag for FIFO and RR
policies.

Example:

$ chrt --fifo --reset-on-fork 1 /bin/bash

$ schedutils/chrt --pid $$
pid 31579's current scheduling policy: SCHED_FIFO|SCHED_RESET_ON_FORK
pid 31579's current scheduling priority: 1

Signed-off-by: Karel Zak <kzak@redhat.com>
schedutils/chrt.1
schedutils/chrt.c