From: acevest Date: Wed, 3 Nov 2021 01:35:32 +0000 (+0800) Subject: do_fork继承父进程名字 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/static/doc/zpipe.c?a=commitdiff_plain;h=2f21573a56db9be3b34e44d0374214226431c93e;p=kernel.git do_fork继承父进程名字 --- diff --git a/kernel/fork.c b/kernel/fork.c index 094cb9f..f5766ab 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -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; //{