-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Keypress listeners not removed on Windows #899
Comments
@mszydlowski91 i noticed signit is also not working when i do ctrl+c. Is it due to this? and is there any alternative fix to this problem lately its giving lot of issue :( |
|
@mszydlowski91 it happens on gitbash which is window terminal only. On OSX it works fine. |
Yep, because the regex I pasted above only checks for |
This workaround is for a node bug: |
Well, it kind of makes things worse as it tricks people into thinking it works fine, and then only after more thorough testing it turns out it's a ticking bomb. Right now it just forces you to do another dirty workarounds |
hmm old version didn't have this issue right? |
Since in previous versions you had problems closing the
readline
interface, as it hanged Node event loop, you have worked the issue around by:if (!/^win/i.test(process.platform)) { this.rl.close(); }
Which means that every time a prompt is created, a keypress listener will still remain, causing excession of max listeners and leading to memory leaks. Do you plan on fixing this rather dirty workaround? It makes the package either unusable or requiring heavy additional logic on Windows terminals.
The text was updated successfully, but these errors were encountered: