patch-1.3.11 linux/arch/alpha/kernel/ptrace.c

Next file: linux/arch/alpha/lib/Makefile
Previous file: linux/arch/alpha/kernel/entry.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.10/linux/arch/alpha/kernel/ptrace.c linux/arch/alpha/kernel/ptrace.c
@@ -693,7 +693,7 @@
 			else
 				child->flags &= ~PF_TRACESYS;
 			child->exit_code = data;
-			child->state = TASK_RUNNING;
+			wake_up_process(child);
 			ptrace_cancel_bpt(child);
 			set_success(&regs,data);
 			return 0;
@@ -705,7 +705,7 @@
  * exit.
  */
 		case PTRACE_KILL: {
-			child->state = TASK_RUNNING;
+			wake_up_process(child);
 			child->exit_code = SIGKILL;
 			ptrace_cancel_bpt(child);
 			return 0;
@@ -721,7 +721,7 @@
 				return res;
 			}
 			child->flags &= ~PF_TRACESYS;
-			child->state = TASK_RUNNING;
+			wake_up_process(child);
 			child->exit_code = data;
 			/* give it a chance to run. */
 			return 0;
@@ -733,7 +733,7 @@
 			   return -EIO;
 			}
 			child->flags &= ~(PF_PTRACED|PF_TRACESYS);
-			child->state = TASK_RUNNING;
+			wake_up_process(child);
 			child->exit_code = data;
 			REMOVE_LINKS(child);
 			child->p_pptr = child->p_opptr;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this