patch-1.3.11 linux/kernel/fork.c
Next file: linux/kernel/itimer.c
Previous file: linux/kernel/exit.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Jul 17 12:11:07 1995
- Orig file:
v1.3.10/linux/kernel/fork.c
- Orig date:
Mon Jun 12 15:56:40 1995
diff -u --recursive --new-file v1.3.10/linux/kernel/fork.c linux/kernel/fork.c
@@ -197,6 +197,8 @@
p->signal = 0;
p->it_real_value = p->it_virt_value = p->it_prof_value = 0;
p->it_real_incr = p->it_virt_incr = p->it_prof_incr = 0;
+ init_timer(&p->real_timer);
+ p->real_timer.data = (unsigned long) p;
p->leader = 0; /* process leadership doesn't inherit */
p->tty_old_pgrp = 0;
p->utime = p->stime = 0;
@@ -219,7 +221,7 @@
p->mm->swappable = 1;
p->exit_signal = clone_flags & CSIGNAL;
p->counter = current->counter >> 1;
- p->state = TASK_RUNNING; /* do this last, just in case */
+ wake_up_process(p); /* do this last, just in case */
return p->pid;
bad_fork_cleanup:
task[nr] = NULL;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this