Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-06-27 08:54:41 +0400
committerisaacs <i@izs.me>2012-06-27 08:54:41 +0400
commitc174a639a451d715c15d161d179fc8360b0bb3ef (patch)
treed7485cf7d36ddaa7a113716abf74955dfc61b0fe /lib/npm.js
parentdf97de6903322b52703a07faaf4e9f6c72dbf021 (diff)
Include pid in npm temp dir
Diffstat (limited to 'lib/npm.js')
-rw-r--r--lib/npm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/npm.js b/lib/npm.js
index 5b257d673..15d02133d 100644
--- a/lib/npm.js
+++ b/lib/npm.js
@@ -443,7 +443,7 @@ Object.defineProperty(npm, "cache",
var tmpFolder
Object.defineProperty(npm, "tmp",
{ get : function () {
- if (!tmpFolder) tmpFolder = "npm-"+Date.now()
+ if (!tmpFolder) tmpFolder = "npm-" + process.pid()
return path.resolve(npm.config.get("tmp"), tmpFolder)
}
, enumerable : true