fix process refcount so that process structure is still valid when final release() is called in schedule()

This commit is contained in:
Balazs Gerofi bgerofi@riken.jp
2014-04-24 17:09:14 +09:00
parent 0e348e6295
commit c15c2a2024
2 changed files with 6 additions and 2 deletions

View File

@@ -404,7 +404,10 @@ terminate(int rc, int sig, ihk_mc_user_context_t *ctx)
}
release_fork_tree_node(ftn);
proc->status = PS_EXITED;
release_process(proc);
schedule();
}
@@ -1743,6 +1746,7 @@ SYSCALL_DECLARE(exit)
proc->status = PS_ZOMBIE;
release_fork_tree_node(proc->ftn);
release_process(proc);
schedule();