~aleteoryx/muditaos

622a7141e0b5eb568c15ee3f6a516657ae00fd20 — Wiktor S. Ovalle Correa 4 years ago 76dc6f9
[EGD-5926] Unmount VFS partitions on close

There is no shutdown procedure reflecting sysInit,
but filesystems can be unmounted directly before returning
from main()
1 files changed, 3 insertions(+), 0 deletions(-)

M source/main.cpp
M source/main.cpp => source/main.cpp +3 -0
@@ 179,5 179,8 @@ int main()
    LOG_PRINTF("Launching PurePhone \n");
    LOG_PRINTF("commit: %s tag: %s branch: %s\n", GIT_REV, GIT_TAG, GIT_BRANCH);
    cpp_freertos::Thread::StartScheduler();

    purefs::subsystem::unmount_all();

    return 0;
}