summaryrefslogtreecommitdiff
path: root/lib/fs.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-09-28 09:47:48 -0700
committerisaacs <i@izs.me>2012-09-28 09:47:48 -0700
commitae40f1c438050bf4607143862259ae10931e3a3c (patch)
tree0e90ed620fd8dd2eab01388eacbfae1615359553 /lib/fs.js
parentd68c02e3fe50405279a138e908701558939ce926 (diff)
parent33a5c8a814483ff48ba3acd94e091335b3536870 (diff)
downloadnodejs-ae40f1c438050bf4607143862259ae10931e3a3c.tar.gz
nodejs-ae40f1c438050bf4607143862259ae10931e3a3c.tar.bz2
nodejs-ae40f1c438050bf4607143862259ae10931e3a3c.zip
Merge remote-tracking branch 'ry/v0.8' into v0.8-merge
Conflicts: AUTHORS ChangeLog deps/openssl/openssl.gyp deps/uv/src/unix/linux/linux-core.c deps/uv/src/unix/process.c deps/uv/src/unix/stream.c deps/v8/src/arm/builtins-arm.cc deps/v8/src/arm/code-stubs-arm.cc deps/v8/src/arm/full-codegen-arm.cc lib/tls.js src/node_version.h test/simple/test-http-client-timeout-agent.js
Diffstat (limited to 'lib/fs.js')
-rw-r--r--lib/fs.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/fs.js b/lib/fs.js
index 3ed99c77f..e8a9aa4f7 100644
--- a/lib/fs.js
+++ b/lib/fs.js
@@ -956,7 +956,10 @@ function StatWatcher() {
var oldStatus = -1;
this._handle.onchange = function(current, previous, newStatus) {
- if (oldStatus == -1 && newStatus == -1) return;
+ if (oldStatus === -1 &&
+ newStatus === -1 &&
+ current.nlink === previous.nlink) return;
+
oldStatus = newStatus;
self.emit('change', current, previous);
};