Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph render race condition issues. #14

Open
arian opened this issue Nov 26, 2012 · 0 comments
Open

Graph render race condition issues. #14

arian opened this issue Nov 26, 2012 · 0 comments

Comments

@arian
Copy link

arian commented Nov 26, 2012

Using Graph.render, there are some race conditions with graphviz.on("exit", …), where exit fires before the graphviz.stdout is ended.

So instead of using exit, you can use close in node 0.8. So a solution would be, in graph.js:373

  var version = process.version.split('.')[1]
  graphviz.on(version < 8 ? 'exit' : 'close', function(code) {
  // ...
  });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant