]> Zhao Yanbai Git Server - kernel.git/commitdiff
do_fork继承父进程名字
authoracevest <zhaoyanbai@126.com>
Wed, 3 Nov 2021 01:35:32 +0000 (09:35 +0800)
committeracevest <zhaoyanbai@126.com>
Wed, 3 Nov 2021 02:45:48 +0000 (10:45 +0800)
kernel/fork.c

index 094cb9f2b7e1156e45e4bead5106e92c9cd12564..f5766abdd4ff9ab1af8359089049c55ac7183040 100644 (file)
@@ -30,7 +30,6 @@ int do_fork(pt_regs_t *regs, unsigned long flags) {
     }
 
     memcpy(tsk, current, sizeof(task_union));
-    strcpy(tsk->name, "init");
     tsk->priority = 61;
 
     //{