kopia lustrzana https://github.com/c9/core
Merge pull request +10924 from c9/writeToWatchedFile
Fix Saving a file owned as root uses 100% cpu in VFS workerpull/227/head
commit
ede5509aa0
|
@ -723,7 +723,8 @@ module.exports = function setup(fsOptions) {
|
||||||
buffer.push(["end"]);
|
buffer.push(["end"]);
|
||||||
}
|
}
|
||||||
function error(err) {
|
function error(err) {
|
||||||
resume();
|
if (!options.bufferWrite)
|
||||||
|
resume();
|
||||||
if (tempPath) {
|
if (tempPath) {
|
||||||
fs.unlink(tempPath, callback.bind(null, err));
|
fs.unlink(tempPath, callback.bind(null, err));
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue