diff options
-rw-r--r-- | kernel/ptrace.c | 2 | ||||
-rw-r--r-- | kernel/signal.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 7a81fc071344..2df115790cd9 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c | |||
@@ -562,7 +562,7 @@ static int ptrace_resume(struct task_struct *child, long request, | |||
562 | } | 562 | } |
563 | 563 | ||
564 | child->exit_code = data; | 564 | child->exit_code = data; |
565 | wake_up_process(child); | 565 | wake_up_state(child, __TASK_TRACED); |
566 | 566 | ||
567 | return 0; | 567 | return 0; |
568 | } | 568 | } |
diff --git a/kernel/signal.c b/kernel/signal.c index ad5e818baacc..86c32b884f8e 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -3023,8 +3023,10 @@ SYSCALL_DEFINE2(signal, int, sig, __sighandler_t, handler) | |||
3023 | 3023 | ||
3024 | SYSCALL_DEFINE0(pause) | 3024 | SYSCALL_DEFINE0(pause) |
3025 | { | 3025 | { |
3026 | current->state = TASK_INTERRUPTIBLE; | 3026 | while (!signal_pending(current)) { |
3027 | schedule(); | 3027 | current->state = TASK_INTERRUPTIBLE; |
3028 | schedule(); | ||
3029 | } | ||
3028 | return -ERESTARTNOHAND; | 3030 | return -ERESTARTNOHAND; |
3029 | } | 3031 | } |
3030 | 3032 | ||