Use pid for temporary folders, fixes #638.

This commit is contained in:
André Cruz
2013-07-22 23:47:38 +01:00
parent c86d0230ba
commit dd951d5350

View File

@@ -139,7 +139,7 @@ Resolver.prototype._createTempDir = function () {
return Q.nfcall(mkdirp, baseDir)
.then(function () {
return Q.nfcall(tmp.dir, {
template: path.join(baseDir, this._name + '-XXXXXX'),
template: path.join(baseDir, this._name + '-' + process.pid + '-XXXXXX'),
mode: 0777 & ~process.umask(),
unsafeCleanup: true
});