*** linux-2.6.4-rc2/arch/alpha/kernel/ptrace.c Thu Mar 4 01:17:04 2004
--- linux-2.6.4-rc2/arch/alpha/kernel/ptrace.c.n Thu Mar 4 10:55:07 2004
***************
*** 367,378 ****
if ((unsigned long) data > _NSIG)
break;
/* Mark single stepping. */
child->thread_info->bpt_nsaved = -1;
clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
- wake_up_process(child);
child->exit_code = data;
/* give it a chance to run. */
ret = 0;
goto out;
case PTRACE_DETACH: /* detach a process that was attached. */
--- 367,378 ----
if ((unsigned long) data > _NSIG)
break;
/* Mark single stepping. */
child->thread_info->bpt_nsaved = -1;
clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
child->exit_code = data;
+ wake_up_process(child);
/* give it a chance to run. */
ret = 0;
goto out;
case PTRACE_DETACH: /* detach a process that was attached. */
Aneesh Kumar KV <[email protected]> writes:
> This patch was acknowledged by Richard
And what is the purpose of it?
--
M?ns Rullg?rd
[email protected]
M?ns Rullg?rd wrote:
> Aneesh Kumar KV <[email protected]> writes:
>
>
>>This patch was acknowledged by Richard
>
>
> And what is the purpose of it?
>
I guess exit_code should be set before we wake_up the child.
-aneesh