Parent: 62168ef6e12925fa42407f4d888cc140a085d7b8
Author: Inga Stotland <inga.stotland@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2018-03-27 13:59:16
Tree: cb32b69e9a9bb450650f0aa9eaba01bdcd7e85d6
mesh/meshctl: Exit cleanly if start up fails This addresses the following issue: if the program exits after bt_shell_init() has been called, but prior to calling bt_shell_run() (e.g., failing to start meshctl due to invalid input configuration), the original shell is messed up after that. Calling bt_shell_cleanup() on faiure fixes this.
Diffstat
| M | mesh/main.c | | | 14 | +++++++++- - - - - |
1 files changed, 9 insertions(+), 5 deletions(-)