Fix ptrace bug when reattaching to a detached process

This commit is contained in:
David van Moolenbroek
2009-11-09 08:12:25 +00:00
parent ebbce7507b
commit a07f8d7646
3 changed files with 92 additions and 1 deletions

View File

@@ -163,6 +163,10 @@ register message *m_ptr;
m_ptr->CTL_DATA = 0;
break;
case T_DETACH: /* detach tracer */
rp->p_misc_flags &= ~MF_SC_ACTIVE;
/* fall through */
case T_RESUME: /* resume execution */
RTS_LOCK_UNSET(rp, P_STOP);
m_ptr->CTL_DATA = 0;