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

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

Open
Nikoms opened this issue May 12, 2022 · 0 comments
Open

Comments

@Nikoms
Copy link

Nikoms commented May 12, 2022

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

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