ptrace: Bug fixed.
see: http://postpeta.pccluster.org/redmine/issues/265#note-3
This commit is contained in:
committed by
Tomoki Shirasawa
parent
f0f31e19fb
commit
a150a19393
@ -2457,7 +2457,7 @@ static int ptrace_setoptions(int pid, int flags)
|
||||
}
|
||||
|
||||
child = findthread_and_lock(pid, -1, &savelock, &irqstate);
|
||||
if (!child || !child->ftn || !(child->ftn->ptrace | PT_TRACED)) {
|
||||
if (!child || !child->ftn || !(child->ftn->ptrace & PT_TRACED)) {
|
||||
ret = -ESRCH;
|
||||
goto unlockout;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user