Skip to content
Discussion options

You must be logged in to vote

Your test matches the intended behavior. Hot reload only replaces the code of a module that is already loaded in a running process. It does not add or remove a module from system_server.

The PR you linked describes it this way: it is "replacing a module's code inside a running process", and a target is a process that already received the module from the daemon (#757). The reload is also only offered to modules that are already loaded in system_server. So:

  • Updating a module that is already running in system_server: no reboot needed. Hot reload swaps the code, either when the module calls hotReloadModule() or automatically if it sets autoHotReload=true in module.prop and agrees in onHotRel…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by victay44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants