aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_functions.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2011-07-08 17:13:39 +0000
committerOleg Nesterov <[email protected]>2011-07-17 18:23:51 +0000
commit6634ae1033ceaeca5877dd75723210f8c2648c17 (patch)
tree2ddf9200593934ac0776bb1d3e3646f448dc38fe /kernel/trace/trace_functions.c
parenthas_stopped_jobs: s/task_is_stopped/SIGNAL_STOP_STOPPED/ (diff)
downloadkernel-6634ae1033ceaeca5877dd75723210f8c2648c17.tar.gz
kernel-6634ae1033ceaeca5877dd75723210f8c2648c17.zip
ptrace_init_task: initialize child->jobctl explicitly
new_child->jobctl is not initialized during the fork, it is copied from parent->jobctl. Currently this is harmless, the forking task is running and copy_process() can't succeed if signal_pending() is true, so only JOBCTL_STOP_DEQUEUED can be copied. Still this is a bit fragile, it would be more clean to set ->jobctl = 0 explicitly. Also, check ->ptrace != 0 instead of PT_PTRACED, move the CONFIG_HAVE_HW_BREAKPOINT code up. Signed-off-by: Oleg Nesterov <[email protected]> Acked-by: Tejun Heo <[email protected]>
Diffstat (limited to 'kernel/trace/trace_functions.c')
0 files changed, 0 insertions, 0 deletions