fixed: _pid of socket

This commit is contained in:
Tjatse 2016-03-04 19:17:52 +08:00
parent ed5031b9cc
commit e018ef4769
1 changed files with 3 additions and 1 deletions

View File

@ -296,7 +296,9 @@ Monitor.prototype._connectProcSock = function (socket) {
if (Array.isArray(socks) && socks.length > 0) {
socks.forEach(function (sock) {
canNotBeDeleted[sock.pid.toString()] = 1;
if (sock._pid) {
canNotBeDeleted[sock._pid.toString()] = 1;
}
});
}