Skip to content

Commit 4126f04

Browse files
committed
adding process id to tmp file to allow for concurrency
1 parent 4dbdd98 commit 4126f04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/mj-page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ var MathJax; // filled in once MathJax is loaded
8787
var serverState = STATE.STOPPED; // nothing loaded yet
8888
var timer; // used to reset MathJax if it runs too long
8989

90-
var tmpfile = os.tmpdir() + "/mj-single-svg"; // file name prefix to use for temp files
90+
var tmpfile = os.tmpdir() + "/mj-single-svg" + process.pid; // file name prefix to use for temp files
9191

9292
var document, window, content, html; // the DOM elements
9393

lib/mj-single.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ var MathJaxConfig; // configuration for when starting MathJax
8585
var MathJax; // filled in once MathJax is loaded
8686
var serverState = STATE.STOPPED; // nothing loaded yet
8787
var timer; // used to reset MathJax if it runs too long
88-
var tmpfile = os.tmpdir() + "/mj-single-svg"; // file name prefix to use for temp files
88+
var tmpfile = os.tmpdir() + "/mj-single-svg" + process.pid; // file name prefix to use for temp files
8989

9090
var document, window, content, html; // the DOM elements
9191

0 commit comments

Comments
 (0)