-
Notifications
You must be signed in to change notification settings - Fork 15
SIGINT (Ctrl-C) always quits shell while running in Node #65
Comments
We need to make sure it's possible to exit the shell. Any bugs related to not being able to exit the shell are very frustrating. I'd recommend this:
|
|
Those do seem correct actually... I'm not sure what made me think they weren't, but something was behaving oddly. |
OK, I think my issue was that phoenix/src/pty/NodeStdioPTT.js Lines 32 to 35 in f7f2ded
It just happens that |
This code, which we use to intercept
Ctrl-C
, unconditionally terminates Phoenix:phoenix/src/pty/NodeStdioPTT.js
Lines 32 to 35 in f7f2ded
This means we never allow Phoenix to handle that itself, either to terminate a running foreground process, or cancel the user's current command input.
I couldn't figure out how to make this work correctly. I think we should remove that code (or maybe limit it to the kill signals - side note, I get the impression our SIG values are wrong?) and then handle the signals inside
readline()
somehow, but I'm not sure. @KernelDeimos Any thoughts?The text was updated successfully, but these errors were encountered: