Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
tomazy opened this Issue · 3 comments

3 participants

@tomazy

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);
  process.exit(exitCode);
}
@tomazy

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

@joel-airspring

+1.

It's preventing me from automatically deleting temp files.

@tebriel

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.