Skip to content

Commit

Permalink
legiond: tigger reload with timer
Browse files Browse the repository at this point in the history
  • Loading branch information
st0nie committed Dec 29, 2024
1 parent 95895f6 commit 51cfad0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extra/service/legiond/legiond.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ void term_handler(int signum)

void timer_handler()
{
pretty("config reload start");
parseconf(&config);
pretty("config reload end");
pretty("set_all start");
set_all(get_powerstate(), &config);

Expand Down Expand Up @@ -159,7 +162,6 @@ int main()
if (event->mask & IN_MODIFY) {
pretty("power-state/power-profile change");
pretty("config reload start");
parseconf(&config);
// as we used to use A3 in acpid cfg
set_timer(&its, 3, 0, timerid);
pretty("config reload end");
Expand Down

0 comments on commit 51cfad0

Please sign in to comment.