Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21028
b: refs/heads/master
c: f9a3879
h: refs/heads/master
v: v3
  • Loading branch information
GOTO Masanori authored and Linus Torvalds committed Mar 14, 2006
1 parent 89d3366 commit b121fa8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 63e1fd41c7127650d355e7db7dd92890edf5523b
refs/heads/master: f9a3879abf2f1a27c39915e6074b8ff15a24cb55
6 changes: 6 additions & 0 deletions trunk/kernel/fork.c
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,12 @@ static task_t *copy_process(unsigned long clone_flags,
*/
p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? child_tidptr: NULL;

/*
* sigaltstack should be cleared when sharing the same VM
*/
if ((clone_flags & (CLONE_VM|CLONE_VFORK)) == CLONE_VM)
p->sas_ss_sp = p->sas_ss_size = 0;

/*
* Syscall tracing should be turned off in the child regardless
* of CLONE_PTRACE.
Expand Down

0 comments on commit b121fa8

Please sign in to comment.