Skip to content

Commit

Permalink
Merge pull request #117 from onomojo/develop
Browse files Browse the repository at this point in the history
adding process id to tmp file to allow for concurrency
  • Loading branch information
dpvc committed Oct 9, 2015
2 parents 4dbdd98 + 4126f04 commit b9d08b4
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 b9d08b4

Please sign in to comment.