Skip to content
Prev Previous commit
@silverwind: add "node-" to repl name for clarity
  • Loading branch information
chrisdickinson committed May 12, 2015
commit 6158e2d3d8e06adba32d9a4ceb950cf6598e959d
4 changes: 2 additions & 2 deletions lib/internal/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function createRepl(env, attemptPersistentHistory, cb) {
if (err) {
repl.close();
}
cb(err);
cb(err, repl);
});
}
repl._historyPrev = _replHistoryMessage;
Expand Down Expand Up @@ -179,7 +179,7 @@ function getTempFile(ready) {
if (!tmpPath) {
return ready(new Error('no tmpdir available'));
}
tmpPath = path.join(tmpPath, process.pid + '-' + 'repl.tmp');
tmpPath = path.join(tmpPath, `${process.pid}-node-repl.tmp`);
fs.open(tmpPath, 'wx', 0o600, function(err, fd) {
if (err) {
return ready(err);
Expand Down