diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-08 19:28:53 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-08 19:28:53 +1000 |
commit | 82423991a8512ab97fbc41d1e190e709c58bc346 (patch) | |
tree | 837e45f94240e02e2ab0f8f931227943e00819b3 /include/ipc.h | |
parent | 89f4ebef064809c4e3d4cc08f8c7f08f4bc6d420 (diff) |
Reload config using idle event
This patch makes it so when you run reload, the actual reloading is
deferred to the next time the event loop becomes idle. This avoids
several use-after-frees and removes the workarounds we have to avoid
them.
When you run reload, we validate the config before creating the idle
event. This is so the reload command will still return an error if there
are validation errors. To allow this, load_main_config has been adjusted
so it doesn't apply the config if validating is true rather than
applying it unconditionally.
This also fixes a memory leak in the reload command where if the config
failed to load, the bar_ids list would not be freed.
Diffstat (limited to 'include/ipc.h')
0 files changed, 0 insertions, 0 deletions