fork.c (4ba9b9d0ba0a49d91fa6417c7510ee36f48cf957) fork.c (42b2dd0a02c512cf59c96f5c227bf54bfe5bbf08)
1/*
2 * linux/kernel/fork.c
3 *
4 * Copyright (C) 1991, 1992 Linus Torvalds
5 */
6
7/*
8 * 'fork.c' contains the help-routines for the 'fork' system call

--- 1142 unchanged lines hidden (view full) ---

1151 if (retval)
1152 goto bad_fork_cleanup_namespaces;
1153
1154 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? child_tidptr : NULL;
1155 /*
1156 * Clear TID on mm_release()?
1157 */
1158 p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? child_tidptr: NULL;
1/*
2 * linux/kernel/fork.c
3 *
4 * Copyright (C) 1991, 1992 Linus Torvalds
5 */
6
7/*
8 * 'fork.c' contains the help-routines for the 'fork' system call

--- 1142 unchanged lines hidden (view full) ---

1151 if (retval)
1152 goto bad_fork_cleanup_namespaces;
1153
1154 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? child_tidptr : NULL;
1155 /*
1156 * Clear TID on mm_release()?
1157 */
1158 p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? child_tidptr: NULL;
1159#ifdef CONFIG_FUTEX
1159 p->robust_list = NULL;
1160#ifdef CONFIG_COMPAT
1161 p->compat_robust_list = NULL;
1162#endif
1163 INIT_LIST_HEAD(&p->pi_state_list);
1164 p->pi_state_cache = NULL;
1160 p->robust_list = NULL;
1161#ifdef CONFIG_COMPAT
1162 p->compat_robust_list = NULL;
1163#endif
1164 INIT_LIST_HEAD(&p->pi_state_list);
1165 p->pi_state_cache = NULL;
1165
1166#endif
1166 /*
1167 * sigaltstack should be cleared when sharing the same VM
1168 */
1169 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM)
1170 p->sas_ss_sp = p->sas_ss_size = 0;
1171
1172 /*
1173 * Syscall tracing should be turned off in the child regardless

--- 528 unchanged lines hidden ---
1167 /*
1168 * sigaltstack should be cleared when sharing the same VM
1169 */
1170 if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM)
1171 p->sas_ss_sp = p->sas_ss_size = 0;
1172
1173 /*
1174 * Syscall tracing should be turned off in the child regardless

--- 528 unchanged lines hidden ---