Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tweak version sniffing to fail broadly

  • Loading branch information...
commit 190653cb09630892fc97db508962ac0d6a682f5c 1 parent df540c1
Ian Young iangreenleaf authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/supervisor.js
4 lib/supervisor.js
View
@@ -243,8 +243,8 @@ function crashOther (oldStat, newStat) {
crash();
}
-var nodeVersion = process.versions.node.substring(0, 3);
-var isWindowsWithoutWatchFile = process.platform === 'win32' && nodeVersion === '0.6';
+var nodeVersion = process.version.split(".");
+var isWindowsWithoutWatchFile = process.platform === 'win32' && parseInt(nodeVersion[1]) <= 6;
function watchGivenFile (watch, poll_interval) {
if (isWindowsWithoutWatchFile)
fs.watch(watch, { persistent: true, interval: poll_interval }, crashWin);
Please sign in to comment.
Something went wrong with that request. Please try again.