Skip to content

Commit aab1dc6

Browse files
jeremybettisfabiobaltieri
authored andcommitted
shell: Restore uninit_cb that was lost in #93154
The sh->ctx->uninit_cb needs to be set before posting the SHELL_SIGNAL_KILL to the event, like the k_poll based code did prior to Signed-off-by: Jeremy Bettis <[email protected]>
1 parent c14a756 commit aab1dc6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/shell/shell.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,6 +1393,7 @@ void shell_uninit(const struct shell *sh, shell_uninit_cb_t cb)
13931393
__ASSERT_NO_MSG(sh);
13941394

13951395
if (IS_ENABLED(CONFIG_MULTITHREADING)) {
1396+
sh->ctx->uninit_cb = cb;
13961397
k_event_post(&sh->ctx->signal_event, SHELL_SIGNAL_KILL);
13971398
return;
13981399
}

0 commit comments

Comments
 (0)