ksud: fix unknown hang of root shell
This commit is contained in:
@@ -209,7 +209,8 @@ pub fn root_shell() -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// escape from the current cgroup and become session leader
|
// 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 = unsafe {
|
||||||
command.pre_exec(move || {
|
command.pre_exec(move || {
|
||||||
umask(0o22);
|
umask(0o22);
|
||||||
|
|||||||
Reference in New Issue
Block a user