diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2003-04-18 20:54:41 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2003-04-18 20:54:41 +0000 |
| commit | 9eb78fcfd9da959c8d7acdb3163a17cc18de7710 (patch) | |
| tree | 3f5ac99254970e6707b143c76f335a0f3d4e707e /sys/alpha/linux | |
| parent | 008f0e2abb3a62eb4b862129c5f0e6baac3b9420 (diff) | |
Notes
Diffstat (limited to 'sys/alpha/linux')
| -rw-r--r-- | sys/alpha/linux/linux_machdep.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/alpha/linux/linux_machdep.c b/sys/alpha/linux/linux_machdep.c index 3ba455ad9fd2..851ac83dbcab 100644 --- a/sys/alpha/linux/linux_machdep.c +++ b/sys/alpha/linux/linux_machdep.c @@ -129,7 +129,6 @@ linux_clone(struct thread *td, struct linux_clone_args *args) struct proc *p2; struct thread *td2; int exit_signal; - vm_offset_t start; #ifdef DEBUG if (ldebug(clone)) { @@ -158,10 +157,8 @@ linux_clone(struct thread *td, struct linux_clone_args *args) if (!(args->flags & CLONE_FILES)) ff |= RFFDG; - error = 0; - start = 0; - - if ((error = fork1(td, ff, 0, &p2)) != 0) + error = fork1(td, ff, 0, &p2); + if (error) return (error); PROC_LOCK(p2); @@ -181,7 +178,7 @@ linux_clone(struct thread *td, struct linux_clone_args *args) */ mtx_lock_spin(&sched_lock); TD_SET_CAN_RUN(td2); - setrunqueue(FIRST_THREAD_IN_PROC(p2)); + setrunqueue(td2); mtx_unlock_spin(&sched_lock); td->td_retval[0] = p2->p_pid; |
