Skip to content

Commit bd42888

Browse files
committed
[fix] Manually merge #405. Fixes #405.
1 parent d3675fa commit bd42888

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/forever.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ forever.cleanLogsSync = function (processes) {
810810
// Determines the full logfile path name
811811
//
812812
forever.logFilePath = function (logFile, uid) {
813-
return logFile && logFile[0] === '/'
813+
return logFile && (logFile[0] === '/' || logFile[1] === ':')
814814
? logFile
815815
: path.join(forever.config.get('root'), logFile || (uid || 'forever') + '.log');
816816
};
@@ -821,7 +821,7 @@ forever.logFilePath = function (logFile, uid) {
821821
// Determines the full pid file path name
822822
//
823823
forever.pidFilePath = function (pidFile) {
824-
return pidFile && pidFile[0] === '/'
824+
return pidFile && (pidFile[0] === '/' || pidFile[1] === ':')
825825
? pidFile
826826
: path.join(forever.config.get('pidPath'), pidFile);
827827
};

0 commit comments

Comments
 (0)