开发者社区 问答 正文

sys_fork in Linux about the stack base

Here is the code for sys_fork in Linux 2.6.24.
asmlinkage int sys_fork(struct pt_regs regs)
{

    return do_fork(SIGCHLD, regs.esp, &regs, 0, NULL, NULL);

}

It seems child process base is a little different than his parent!

展开
收起
杨冬芳 2016-07-14 15:12:28 2199 分享 版权
0 条回答
写回答
取消 提交回答
问答分类:
问答地址: