Skip to content

Process is never killed because listenerCount('uncaughtException') === 2 #292

Description

@Nikoms

Hey!

I have a little question about the -r option. I don't know if it's a bug or related to something else (ts-node ?).

Here is my launch.js:

console.log(process.listenerCount('uncaughtException'));

When I do ./node_modules/.bin/node-dev -- launch.js it displays 1 which is normal because node-dev adds a listener.

But when I do this /node_modules/.bin/node-dev -r ts-node/register -- launch.js; it displays 2. It means that sometimes my process never ends because node-dev check for this counter.

FYI, I ran this: node -r ts-node/register launch.js and it displays 0.

Do you have any idea on how I could fix this?

Thank you

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions