Merge pull request +10924 from c9/writeToWatchedFile

Fix Saving a file owned as root uses 100% cpu in VFS worker
pull/227/head
Lennart Kats 2015-12-11 09:46:22 +01:00
commit ede5509aa0
1 zmienionych plików z 2 dodań i 1 usunięć

3
node_modules/vfs-local/localfs.js wygenerowano vendored
Wyświetl plik

@ -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));
}