File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ impl KernelThreadMechanism {
286286
287287 KernelThreadMechanism :: __inner_create (
288288 & create_info,
289- CloneFlags :: CLONE_VM | CloneFlags :: CLONE_SIGHAND ,
289+ CloneFlags :: CLONE_VM | CloneFlags :: CLONE_FS | CloneFlags :: CLONE_FILES ,
290290 )
291291 . unwrap_or_else ( |e| panic ! ( "Failed to create initial kernel thread, error: {:?}" , e) ) ;
292292
@@ -314,7 +314,7 @@ impl KernelThreadMechanism {
314314 . expect ( "kthreadadd should be run first" ) ;
315315 let kthreadd_pid: RawPid = Self :: __inner_create (
316316 & info,
317- CloneFlags :: CLONE_VM | CloneFlags :: CLONE_FS | CloneFlags :: CLONE_SIGHAND ,
317+ CloneFlags :: CLONE_VM | CloneFlags :: CLONE_FS | CloneFlags :: CLONE_FILES ,
318318 )
319319 . expect ( "Failed to create kthread daemon" ) ;
320320 let pcb = ProcessManager :: find_task_by_vpid ( kthreadd_pid) . unwrap ( ) ;
@@ -467,7 +467,7 @@ impl KernelThreadMechanism {
467467 // create a new kernel thread
468468 let result: Result < RawPid , SystemError > = Self :: __inner_create (
469469 & info,
470- CloneFlags :: CLONE_VM | CloneFlags :: CLONE_FS | CloneFlags :: CLONE_SIGHAND ,
470+ CloneFlags :: CLONE_VM | CloneFlags :: CLONE_FS | CloneFlags :: CLONE_FILES ,
471471 ) ;
472472 if result. is_err ( ) {
473473 // 创建失败
You can’t perform that action at this time.
0 commit comments