clean up per process structure in exit_group() and fix wait4() on self bug

This commit is contained in:
bgerofi@riken.jp
2014-05-19 11:23:55 +09:00
committed by Balazs Gerofi bgerofi@riken.jp
parent 3e830521c1
commit 81a78be20a
3 changed files with 53 additions and 1 deletions

View File

@@ -390,6 +390,18 @@ retry_alloc:
ihk_ikc_spinlock_unlock(&c->wq_list_lock, irqflags);
kfree(wqhln);
if (c->param.request_va->number == 61 &&
c->param.request_va->args[0] == swd.pid) {
dprintk("pid: %d, tid: %d: SC %d, swd.cpu: %d, WARNING: wait4() for self?\n",
current->tgid,
current->pid,
c->param.request_va->number,
swd.cpu);
return -EINTR;
}
if (ret) {
return -EINTR;
}