|
@@ -1875,10 +1875,10 @@ static void do_notify_parent_cldstop(struct task_struct *tsk,
|
|
|
spin_unlock_irqrestore(&sighand->siglock, flags);
|
|
|
}
|
|
|
|
|
|
-static inline int may_ptrace_stop(void)
|
|
|
+static inline bool may_ptrace_stop(void)
|
|
|
{
|
|
|
if (!likely(current->ptrace))
|
|
|
- return 0;
|
|
|
+ return false;
|
|
|
/*
|
|
|
* Are we in the middle of do_coredump?
|
|
|
* If so and our tracer is also part of the coredump stopping
|
|
@@ -1894,9 +1894,9 @@ static inline int may_ptrace_stop(void)
|
|
|
*/
|
|
|
if (unlikely(current->mm->core_state) &&
|
|
|
unlikely(current->mm == current->parent->mm))
|
|
|
- return 0;
|
|
|
+ return false;
|
|
|
|
|
|
- return 1;
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
/*
|