2004-03-04 16:00:49

by Aneesh Kumar KV

[permalink] [raw]
Subject: [PATCH] Alpha ptrace.c

*** 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. */


Attachments:
ptrace.c.diff (926.00 B)

2004-03-04 16:28:08

by Måns Rullgård

[permalink] [raw]
Subject: Re: [PATCH] Alpha ptrace.c

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]

2004-03-04 16:34:13

by Aneesh Kumar KV

[permalink] [raw]
Subject: Re: [PATCH] Alpha ptrace.c

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