Skip to content

Commit

Permalink
[fix] Add the child PID to the list from psTree not remove it
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Oct 9, 2011
1 parent 7ae3d1d commit fa03117
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/forever/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ Monitor.prototype.kill = function (forceStop) {
return p.PID;
});

pids.shift(self.child.pid);
pids.unshift(self.child.pid);
spawn('kill', ['-9'].concat(pids)).on('exit', function () {
self.emit('stop', self.childData);
});
Expand All @@ -391,7 +391,6 @@ Monitor.prototype.kill = function (forceStop) {
this.child.kill();
this.emit('stop', this.childData);
}

}

return this;
Expand Down

0 comments on commit fa03117

Please sign in to comment.