终止后有没有办法让孩子的task_struct?
我需要这样的东西:
long pid = sys_clone(CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_SIGHAND, 0);
if (pid > 0) {
sys_wait4(-1, NULL, __WALL, NULL);
//Get child's task_struct and check some values from it
} else {
//child stuff.
}