Commit 2cb965e2 authored by Richard Henderson's avatar Richard Henderson Committed by Richard Henderson

[ALPHA] Mark exit_code before waking process for SINGLESTEP.

From Aneesh Kumar <kvaneesh@yahoo.com>.
parent 3a892a64
......@@ -368,9 +368,9 @@ do_sys_ptrace(long request, long pid, long addr, long data,
break;
/* Mark single stepping. */
child->thread_info->bpt_nsaved = -1;
child->exit_code = data;
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;
......
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