Only keep a tombstone if there was a non-falsy exit reason
This commit is contained in:
parent
0025e6b3af
commit
48e1b04f90
|
@ -179,8 +179,10 @@ World.prototype.kill = function (pid, exn) {
|
|||
}
|
||||
delete this.processTable[pid];
|
||||
if (p) {
|
||||
p.exitReason = exn;
|
||||
this.tombstones[pid] = p;
|
||||
if (exn) {
|
||||
p.exitReason = exn;
|
||||
this.tombstones[pid] = p;
|
||||
}
|
||||
this.applyAndIssueRoutingUpdate(p.gestalt, route.emptyGestalt);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue