Commit de4aeef8 authored by Oleg Nesterov's avatar Oleg Nesterov Committed by James Toy

Introduce the empty inline tracehook_finish_jctl() helper called by

do_signal_stop() after wakeup.

Currently we lack the ability to report this state change.

Also fix the comment, it should be placed before schedule().
Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
Acked-by: default avatarRoland McGrath <roland@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 358d2bff
......@@ -488,6 +488,15 @@ static inline int tracehook_notify_jctl(int notify, int why)
return notify ?: (current->ptrace & PT_PTRACED) ? why : 0;
}
/**
* tracehook_finish_jctl - report about return from job control stop
*
* This is called by do_signal_stop() after wakeup.
*/
static inline void tracehook_finish_jctl(void)
{
}
#define DEATH_REAP -1
#define DEATH_DELAYED_GROUP_LEADER -2
......
......@@ -1717,12 +1717,12 @@ static int do_signal_stop(int signr)
read_unlock(&tasklist_lock);
}
/* Now we don't run again until woken by SIGCONT or SIGKILL */
do {
schedule();
} while (try_to_freeze());
/*
* Now we don't run again until continued.
*/
tracehook_finish_jctl();
current->exit_code = 0;
return 1;
......
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