Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

EProc: exit hooks should be secured a bit better

  • Loading branch information...
commit a83287f7d8e90484368e73171849cf4aabab6ab7 1 parent 238937c
@eriksoe eriksoe authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/main/java/erjang/EProc.java
View
3  src/main/java/erjang/EProc.java
@@ -235,6 +235,7 @@ protected void do_proc_termination(EObject result) throws Pausable {
} else {
hooks = exit_hooks.toArray(new ExitHook[exit_hooks.size()]);
}
+ //TODO: Within this lock, mark process as terminated so that race conditions can be handled in add_exit_hook().
}
for (int i = 0; i < hooks.length; i++) {
@@ -726,7 +727,7 @@ public boolean is_alive() {
return ps == STATE.INIT || ps == STATE.RUNNING;
}
- List<ExitHook> exit_hooks = new ArrayList<ExitHook>();
+ private final List<ExitHook> exit_hooks = new ArrayList<ExitHook>();
public long timeout_start;
Please sign in to comment.
Something went wrong with that request. Please try again.