Only keep a tombstone if there was a non-falsy exit reason

This commit is contained in:
Tony Garnock-Jones 2014-07-22 09:36:04 -07:00
parent 0025e6b3af
commit 48e1b04f90
1 changed files with 4 additions and 2 deletions

View File

@ -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);
}
};