Merge pull request +10924 from c9/writeToWatchedFile

Fix Saving a file owned as root uses 100% cpu in VFS worker
This commit is contained in:
Lennart Kats 2015-12-11 09:46:22 +01:00
commit ede5509aa0

3
node_modules/vfs-local/localfs.js generated vendored
View File

@ -723,7 +723,8 @@ module.exports = function setup(fsOptions) {
buffer.push(["end"]);
}
function error(err) {
resume();
if (!options.bufferWrite)
resume();
if (tempPath) {
fs.unlink(tempPath, callback.bind(null, err));
}