Skip to content

Commit 6f98a1b

Browse files
committed
fix(init): remove flags CloneFlags::CLONE_SIGHAND
Signed-off-by: aLinChe <1129332011@qq.com>
1 parent 54138be commit 6f98a1b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

kernel/src/process/kthread.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
// 创建失败

0 commit comments

Comments
 (0)