Clear trace bit for child on fork.

Without this, a forking single-stepped process will have its child
die from a TRAP signal right away.
This commit is contained in:
David van Moolenbroek 2009-05-13 21:58:10 +00:00
parent fe8c612aa4
commit c2aef85eda

View file

@ -55,6 +55,8 @@ register message *m_ptr; /* pointer to request message */
rpc->p_user_time = 0; /* set all the accounting times to 0 */
rpc->p_sys_time = 0;
rpc->p_reg.psw &= ~TRACEBIT; /* clear trace bit */
/* Parent and child have to share the quantum that the forked process had,
* so that queued processes do not have to wait longer because of the fork.
* If the time left is odd, the child gets an extra tick.