Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Corner cases in unregistered process termination

  • Loading branch information...
commit c7c31a99f8ba24034588c5c8f1ad1202e6e00af4 1 parent 83a39fa
@krestenkrab krestenkrab authored
View
2  src/main/java/erjang/ERT.java
@@ -746,7 +746,7 @@ public static void register(EAtom aname, EHandle handle) {
public static boolean unregister(EAtom aname) {
EHandle val = register.remove(aname);
if (val != null) {
- val.setName(null);
+ val.setName(ERT.am_undefined);
return true;
} else {
return false;
View
2  src/main/java/erjang/ETask.java
@@ -161,7 +161,7 @@ protected void do_proc_termination(EObject exit_reason) throws Pausable {
pid.send_monitor_exit((EHandle)me, ref, exit_reason);
}
- if (name != ERT.am_undefined) {
+ if (name != ERT.am_undefined && name != null) {
ERT.unregister(name);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.