Skip to content

[Feature Request] Implement Pre-Termination event for graceful sysmodule shutdown #33

@o0Zz

Description

@o0Zz

Hi,

I'm currently working on a module called sys-con and would like to enable/disable it using OVL-Sysmodule. However, I’ve noticed that OVL-Sysmodule does not properly close the sysmodule (pmshellTerminateProgram) and doesn’t provide a way for the sysmodule to shut down gracefully. (If I’ve missed something, please feel free to correct me).

This behavior is problematic because the sys-con module relies on hiddbgAttachHdlsWorkBuffer, which must be properly deinitialized to prevent issues. Without a graceful shutdown mechanism, this will cause the console to crash, as described in this GitHub issue: sys-con issue #52.

Do you think it would be possible to implement an event or signal, such as a 1-second notification before terminating the sysmodule, to let a chance to the sysmodule to close gracefully? (Example: In the toolbox.json a kind of gracefully_shutdown_delay: 1 where 1 means 1s to terminate before killing it)

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions