Skip to content

Commit 0d7b819

Browse files
author
Magnus Kessler
committed
Use "Ctrl-G q" to exit from remote shell
On some OS configurations, such as RHEL/CentOS, pressing "Ctrl-C" immediately detaches the Erlang shell from the controlling terminal. The beam process continues to run, and will eventually start to consume considerable CPU resources. Advise user to press "Ctrl-G q", in line with the instructions printed by Eshell.
1 parent 1d35f98 commit 0d7b819

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

priv/base/runner

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ This is the primary script for controlling the $SCRIPT node.
9090
Attaches to the console of a $SCRIPT node running in the background
9191
using an Erlang remote shell, giving access to the Erlang shell and
9292
runtime messages. Prints "Node is not running!" when the node cannot
93-
be reached. Exit \`$SCRIPT attach\` by pressing Ctrl-C twice.
93+
be reached. Exit \`$SCRIPT attach\` by pressing \"Ctrl-G q\".
9494
9595
attach-direct
9696
Attaches to the console of a $SCRIPT node running in the background
@@ -301,7 +301,8 @@ case "$1" in
301301
# Make sure a node is running
302302
node_up_check
303303

304-
echo "Remote Shell: Use \"Ctrl-C a\" to quit. q() or init:stop() will terminate the $SCRIPT node."
304+
echo "Remote Shell: Use \"Ctrl-G q\" to quit."
305+
echo "q() or init:stop() will terminate the $SCRIPT node."
305306
shift
306307
NODE_NAME=${NAME_ARG#* }
307308
exec $ERTS_PATH/erl -name c_$$_$NODE_NAME -hidden -remsh $NODE_NAME $COOKIE_ARG $NET_TICKTIME_ARG

0 commit comments

Comments
 (0)