Skip to content

Commit

Permalink
in_calyptia_fleet: use GenerateConsoleCtrlEvent on win32 to execute r…
Browse files Browse the repository at this point in the history
…eload.

Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan committed Sep 15, 2023
1 parent 5506997 commit 47b7af2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/in_calyptia_fleet/in_calyptia_fleet.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,11 @@ static void *do_reload(void *data)
reload->flb->config->conf_path_file = reload->cfg_path;

sleep(5);
#ifndef FLB_SYSTEM_WINDOWS
kill(getpid(), SIGHUP);

#else
GenerateConsoleCtrlEvent(1 /* CTRL_BREAK_EVENT_1 */, 0);
#endif
return NULL;
}

Expand Down

0 comments on commit 47b7af2

Please sign in to comment.