ptrace: Bug fixed.

see: http://postpeta.pccluster.org/redmine/issues/265#note-3
This commit is contained in:
Naoki Hamada
2014-10-14 10:40:55 +09:00
committed by Tomoki Shirasawa
parent f0f31e19fb
commit a150a19393

View File

@ -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;
}