diff options
author | isaacs <i@izs.me> | 2012-09-28 09:47:48 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-09-28 09:47:48 -0700 |
commit | ae40f1c438050bf4607143862259ae10931e3a3c (patch) | |
tree | 0e90ed620fd8dd2eab01388eacbfae1615359553 /lib/fs.js | |
parent | d68c02e3fe50405279a138e908701558939ce926 (diff) | |
parent | 33a5c8a814483ff48ba3acd94e091335b3536870 (diff) | |
download | nodejs-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.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); }; |