Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340233
b: refs/heads/master
c: 8cddebd
h: refs/heads/master
i:
  340231: 9318bc0
v: v3
  • Loading branch information
Al Viro committed Nov 29, 2012
1 parent 2ea937a commit 269dc09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c4144670fd9b34d6eae22c9f83751745898e8243
refs/heads/master: 8cddebd767c5059257022cfbc2ac53fd81c09c94
8 changes: 2 additions & 6 deletions trunk/arch/um/kernel/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,19 @@

long sys_fork(void)
{
return do_fork(SIGCHLD, UPT_SP(&current->thread.regs.regs),
return do_fork(SIGCHLD, 0,
&current->thread.regs, 0, NULL, NULL);
}

long sys_vfork(void)
{
return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD,
UPT_SP(&current->thread.regs.regs),
return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD, 0,
&current->thread.regs, 0, NULL, NULL);
}

long sys_clone(unsigned long clone_flags, unsigned long newsp,
void __user *parent_tid, void __user *child_tid)
{
if (!newsp)
newsp = UPT_SP(&current->thread.regs.regs);

return do_fork(clone_flags, newsp, &current->thread.regs, 0, parent_tid,
child_tid);
}
Expand Down

0 comments on commit 269dc09

Please sign in to comment.