[RFC PATCH] set TASK_TRACED before arch_ptrace code to fix a race

From: Luming Yu
Date: Wed May 21 2008 - 22:47:47 EST

Hello list,

The following patch is to fixed a race in ptrace_stop handling which
causes "strace" hang if the target process blocks SIGTRAP with the
test case filed at
Please note this is just IA64 problem because just IA64 has
arch_ptrace_stop_needed defined, and has arch_ptrace_stop defined that
would set notify_resume flags for syncing rbs...but it also opens the
door to invoke ia64_do_signal->get_signal_to_deliver before setting
current PTRACED flag. Please help review.

**The patch is enclosed in text attachment*
**I'm using web client to send the patch* *

Signed-off-by: Yu Luming <luming.yu@xxxxxxxxx>
signal.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Attachment: 446200.patch
Description: application/force-download