mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Use pid for temporary folders, fixes #638.
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user