Skip to content

Commit

Permalink
adding process id to tmp file to allow for concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
onomojo committed Sep 11, 2015
1 parent 4dbdd98 commit 4126f04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mj-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ var MathJax; // filled in once MathJax is loaded
var serverState = STATE.STOPPED; // nothing loaded yet
var timer; // used to reset MathJax if it runs too long

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

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

Expand Down
2 changes: 1 addition & 1 deletion lib/mj-single.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var MathJaxConfig; // configuration for when starting MathJax
var MathJax; // filled in once MathJax is loaded
var serverState = STATE.STOPPED; // nothing loaded yet
var timer; // used to reset MathJax if it runs too long
var tmpfile = os.tmpdir() + "/mj-single-svg"; // file name prefix to use for temp files
var tmpfile = os.tmpdir() + "/mj-single-svg" + process.pid; // file name prefix to use for temp files

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

Expand Down

0 comments on commit 4126f04

Please sign in to comment.