Skip to content

Commit

Permalink
server/telnet: Always allow 'exit' command
Browse files Browse the repository at this point in the history
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 <dev@zapb.de>
Reviewed-on: https://review.openocd.org/c/openocd/+/8379
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
  • Loading branch information
zapb-0 authored and tom-van committed Aug 6, 2024
1 parent b9224c0 commit efe9022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/telnet_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ static const struct command_registration telnet_command_handlers[] = {
{
.name = "exit",
.handler = handle_exit_command,
.mode = COMMAND_EXEC,
.mode = COMMAND_ANY,
.usage = "",
.help = "exit telnet session",
},
Expand Down

0 comments on commit efe9022

Please sign in to comment.