From b191ec94a5c56d58fc800bf9bab462e8557d0d3c Mon Sep 17 00:00:00 2001 From: tiann Date: Tue, 4 Apr 2023 16:41:57 +0800 Subject: [PATCH] ksud: fix unknown hang of root shell --- userspace/ksud/src/ksu.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/userspace/ksud/src/ksu.rs b/userspace/ksud/src/ksu.rs index d2da87f2..0afc417d 100644 --- a/userspace/ksud/src/ksu.rs +++ b/userspace/ksud/src/ksu.rs @@ -209,7 +209,8 @@ pub fn root_shell() -> Result<()> { } // escape from the current cgroup and become session leader - command = command.process_group(0); + // WARNING!!! This cause some root shell hang forever! + // command = command.process_group(0); command = unsafe { command.pre_exec(move || { umask(0o22);