Commit 01d63346 authored by Andrew Morton's avatar Andrew Morton Committed by Jaroslav Kysela

[PATCH] alpha ptrace race fix

From: Aneesh Kumar KV <aneesh.kumar@digital.com>

We need to set the tasks's exit code prior to waking it, not afterwards.

Acked by rth.
parent b12088bf
......@@ -369,8 +369,8 @@ do_sys_ptrace(long request, long pid, long addr, long data,
/* 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;
wake_up_process(child);
/* give it a chance to run. */
ret = 0;
goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment