Skip to content

Commit efe9022

Browse files
zapb-0tom-van
authored andcommitted
server/telnet: Always allow 'exit' command
The telnet 'exit' command is only available in the execution phase of OpenOCD. Thus, a telnet session cannot be closed via 'exit' if OpenOCD is started with 'noinit'. Make the 'exit' command always available. Change-Id: I14447ecde63e579f1c523d606f048ad29cc84a35 Signed-off-by: Marc Schink <[email protected]> Reviewed-on: https://review.openocd.org/c/openocd/+/8379 Reviewed-by: Tomas Vanek <[email protected]> Tested-by: jenkins
1 parent b9224c0 commit efe9022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/telnet_server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ static const struct command_registration telnet_command_handlers[] = {
982982
{
983983
.name = "exit",
984984
.handler = handle_exit_command,
985-
.mode = COMMAND_EXEC,
985+
.mode = COMMAND_ANY,
986986
.usage = "",
987987
.help = "exit telnet session",
988988
},

0 commit comments

Comments
 (0)