Files
kolibrios/programs/develop/ktcc/lib/libshell/shell_exit.c
T
Egor00f 1df9d8496d
Build system / Build (es_ES) (push) Successful in 3m46s
Build system / Build (en_US) (push) Successful in 3m55s
Build system / Build (ru_RU) (push) Successful in 4m27s
Build system / Publish Images (push) Successful in 5m28s
libshell & shell: use shell_api.h (#657)
Use `shell_api.h` and the buffer structure in `shell` and `libshell` to avoid magic numbers and sync

Reviewed-on: #657
Reviewed-by: Burer <burer@kolibrios.org>
Co-authored-by: Egor00f <y.yarin@inbox.ru>
2026-09-02 08:25:57 +00:00

13 lines
230 B
C

#include <shell_api.h>
#include <sys/ksys.h>
void shell_exit()
{
if (__shell_is_init == __SHELL_INIT_OK)
{
__shell_shm->cmd = SHELL_EXIT;
__SHELL_WAIT();
_ksys_shm_close(__shell_shm_name);
}
}