kernel:ptrace - Fix typo in comment in function __ptrace_unlink().
PATCH 1/1 kernel:ptrace - Fix typo in comment in function __ptrace_unlink().
Signed-off-by Shailendra Verma <[email protected]>
--- kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/ptrace.c +1 -1
@@ -108,7 +108,7 @@ void __ptrace_unlink(struct task_struct *child)/* * If transition to TASK_STOPPED is pending or in TASK_TRACED, kick -* @child in the butt. Note that @resume should be used iff @child +* @child in the butt. Note that @resume should be used if @child * is in TASK_TRACED; otherwise, we might unduly disrupt * TASK_KILLABLE sleeps. */
Signature · 1 line
1.7.9.5
kernel/ptrace.c void __ptrace_unlink(struct task_struct *child) · line 111
Quoted 8 lines · Shailendra Verma
kernel/ptrace.c +1
-1@@ -108,7 +108,7 @@ void __ptrace_unlink(struct task_struct *child)/* * If transition to TASK_STOPPED is pending or in TASK_TRACED, kick -* @child in the butt. Note that @resume should be used iff @child +* @child in the butt. Note that @resume should be used if @child
Probably incorrect, as it appears to be using 'iff' in the mathematical sense of 'if and only if'....
Oleg Nesterov
maintainerSo this "fix" is wrong.
But you know, even if it was correct... IMO, the fixes like this can only make sense as a "while at it" part of the meaningful change.
Quoted 22 lines · Shailendra Verma
Signed-off-by Shailendra Verma <[email protected]>--- kernel/ptrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/ptrace.c +1
-1@@ -108,7 +108,7 @@ void __ptrace_unlink(struct task_struct *child)/* * If transition to TASK_STOPPED is pending or in TASK_TRACED, kick -* @child in the butt. Note that @resume should be used iff @child +* @child in the butt. Note that @resume should be used if @child * is in TASK_TRACED; otherwise, we might unduly disrupt * TASK_KILLABLE sleeps. */ Signature · 1 line
1.7.9.5