compositor: set scheduler to SCHED_RR before dropping CAP_SYS_NICE
This commit is contained in:
parent
af6e868a78
commit
7a623006e2
8 changed files with 202 additions and 12 deletions
|
|
@ -234,7 +234,9 @@ impl ValueEnum for &'static Format {
|
|||
|
||||
pub fn main() {
|
||||
let cli = Jay::parse();
|
||||
drop_all_pr_caps();
|
||||
if not_matches!(cli.command, Cmd::Run(_)) {
|
||||
drop_all_pr_caps();
|
||||
}
|
||||
match cli.command {
|
||||
Cmd::Run(a) => start_compositor(cli.global, a),
|
||||
Cmd::GenerateCompletion(g) => generate::main(g),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue