Skip to content

jasmine-node prevents process exit hooks to be executed #261

tomazy opened this Issue Sep 14, 2013 · 3 comments

3 participants

tomazy commented Sep 14, 2013

Because of this I'm unable to do any cleanup at exit (e.g. stoping Selenium server). I think the following snipped (cli.js) is the reason. It installs its hook as one of the firsts, and forces to exit the process, thus preventing the others to do their job.

process.on("exit", onExit);

function onExit() {
  process.removeListener("exit", onExit);
tomazy commented Sep 14, 2013

It looks that this commit could help: nodejs/node-v0.x-archive@a5dba82



It's preventing me from automatically deleting temp files.

tebriel commented Mar 7, 2014

Hmm, as the exitCode is in v11 (unstable) do you have some sort of gist I can use as an example to try to work around the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.