-
Notifications
You must be signed in to change notification settings - Fork 340
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
rails console will not suspend #361
Comments
I have exactly the same problem. It seems the spring server is somehow attached to the PTY of the shell. So even if you suspended the spring console command, the server is still reading and writing to the PTY. Killing the server with |
This seems to fix the problem:
|
ctrl-z (SIGTSTP) doesn't work with Spring, and it corrupts the terminal as mentioned by @casper in Issue rails#361: > the spring server is somehow attached to the PTY of the shell the solution is to: > trap SIGTSTP and tell the server to disengage from the PTY > before the client process is suspended
ctrl-z (SIGTSTP) doesn't work with Spring, and it corrupts the terminal as mentioned by @casper in Issue rails#361: > the spring server is somehow attached to the PTY of the shell the solution is to: > trap SIGTSTP and tell the server to disengage from the PTY > before the client process is suspended
ctrl-z (SIGTSTP) doesn't work with Spring, and it corrupts the terminal as mentioned by @casper in Issue rails#361: > the spring server is somehow attached to the PTY of the shell the solution is to: > trap SIGTSTP and tell the server to disengage from the PTY > before the client process is suspended
will this be merged soon? spring is useful except when it doesn't suspend. |
Still does not work, but commenting out "guard-rails" gem did help. |
Are you sure you killed all background processes before you tested the patch? You have to manually check everything with The other option is something has changed since 2015 when I tested it last time, or maybe there is some interaction with guard-rails I'm not aware of. |
ctrl-z (SIGTSTP) doesn't work with Spring, and it corrupts the terminal as mentioned by @casper in Issue rails#361: > the spring server is somehow attached to the PTY of the shell the solution is to: > trap SIGTSTP and tell the server to disengage from the PTY > before the client process is suspended
ctrl-z (SIGTSTP) doesn't work with Spring, and it corrupts the terminal as mentioned by @casper in Issue rails#361: > the spring server is somehow attached to the PTY of the shell the solution is to: > trap SIGTSTP and tell the server to disengage from the PTY > before the client process is suspended
Suspend and Resume on TSTP and CONT signals #361
Closed by #514 |
When using spring, I am unable to ctl-Z out of the rails console. While it looks like it's in the shell, if I just hit return it goes back into the rails console. After that, nothing makes sense as it seems to drop letters.
At this point, my only recourse is to kill the terminal shell.
This is running on Yosemite on Mac. I have tried w/ ruby 1.9.3 and 2.1, and with rails 4.0 and 4.1.
The text was updated successfully, but these errors were encountered: