zephyr/subsys/shell
Marcin Niestroj c2543ddbfa shell: fix race condition in shell instance initialization
So far shell transport was initialized early before any k_poll events
and signals. transport_evt_handler() was passed as callback to transport
initializer and could be executed right away. This was true for example
with shell_uart when it enabled interrupts on RX and there were already
some bytes to read. As a result executed transport_evt_handler() is
operating on uninitialized k_poll signals.

Address this race condition by simply initializing shell transport when
everything is ready for processing data, i.e. on the end of shell
instance initialization.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
2020-01-28 17:24:46 -05:00
..
modules subsystem: kernel_shell: Fix pointer cast to u32_t 2019-11-13 09:00:03 +01:00
CMakeLists.txt
Kconfig kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.backends shell: kconfig: Have SHELL_BACKEND_RTT depend on USE_SEGGER_RTT 2020-01-24 22:47:53 +01:00
Kconfig.template.shell_log_queue_size
Kconfig.template.shell_log_queue_timeout
shell_cmds.c shell: Fix undefined macro warnings 2019-07-24 16:34:31 -04:00
shell_dummy.c
shell_fprintf.c
shell_help.c global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
shell_help.h
shell_history.c
shell_log_backend.c shell: fix log output when CONFIG_LOG_IMMEDIATE=y 2019-08-14 14:27:14 +02:00
shell_ops.c shell: Initialize va_list variables portably. 2019-06-07 12:08:35 +02:00
shell_ops.h
shell_rtt.c
shell_telnet_protocol.h
shell_telnet.c net: telnet: User could telnet to zephyr only once 2019-10-28 13:58:59 +02:00
shell_uart.c cleanup: include/: move uart.h to drivers/uart.h 2019-06-27 22:55:49 -04:00
shell_utils.c style: add braces around if/while statements 2019-06-06 15:20:21 +02:00
shell_utils.h
shell_vt100.h shell: add Ctrl+N and Ctrl+P meta-keys 2019-06-24 07:17:53 -04:00
shell_wildcard.c
shell_wildcard.h
shell.c shell: fix race condition in shell instance initialization 2020-01-28 17:24:46 -05:00