mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 18:52:50 +00:00
updated package.json
This commit is contained in:
16
node_modules/forever/lib/forever.js
generated
vendored
16
node_modules/forever/lib/forever.js
generated
vendored
@@ -758,14 +758,16 @@ forever.findByUid = function (script, processes) {
|
||||
// Finds the process with the specified pid.
|
||||
//
|
||||
forever.findByPid = function (pid, processes) {
|
||||
var procs = !processes
|
||||
? null
|
||||
: processes.filter(function (p) {
|
||||
return p.pid == pid;
|
||||
});
|
||||
pid = typeof pid === 'string'
|
||||
? parseInt(pid, 10)
|
||||
: pid;
|
||||
|
||||
var procs = processes && processes.filter(function (p) {
|
||||
return p.pid === pid;
|
||||
});
|
||||
|
||||
if (procs && procs.length === 0) { procs = null; }
|
||||
return procs;
|
||||
return procs || null;
|
||||
};
|
||||
|
||||
//
|
||||
@@ -972,7 +974,7 @@ forever.logEvents = function (monitor) {
|
||||
});
|
||||
|
||||
monitor.on('exit:code', function (code, signal) {
|
||||
forever.out.error(!isNaN(code)
|
||||
forever.out.error((code !== null && code !== undefined)
|
||||
? 'Forever detected script exited with code: ' + code
|
||||
: 'Forever detected script was killed by signal: ' + signal);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user