Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

tomazy opened this Issue · 3 comments

3 participants


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);

It looks that this commit could help: joyent/node@a5dba82



It's preventing me from automatically deleting temp files.


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.