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

Issue when process sent to background #12

Open
sstur opened this issue Dec 17, 2014 · 0 comments
Open

Issue when process sent to background #12

sstur opened this issue Dec 17, 2014 · 0 comments

Comments

@sstur
Copy link

sstur commented Dec 17, 2014

When you start a process and send it to the background, using node foo.js &, the terminal does something with the stdin that causes issues when using keypress.

It appears to freeze the whole node process (such that any ports you are listening on remain unavailable to the system but don't respond). The process itself doesn't respond to any signals except SIGKILL.

This is only the case when we've called process.stdin.setRawMode(true)

The system sends a SIGTTOU at some point after launching, but before becoming unresponsive. I'm wondering if I could listen for that signal and call keypress.disable(process.stdin) or something similar.

I'm using OS X 10.10.1 and this problem reproduces in node v0.10.x.

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