static bool config_refresh(void *mconfig)
{
+ if (filter_running > 0) {
+ sighup = true;
+ sleep(1);
+ return true;
+ }
return config_reload(mconfig);
}
static int policy_run(server_t *pcy, void* vconfig)
{
+ if (sighup) {
+ return 0;
+ }
+
int search_offs = MAX(0, (int)(pcy->ibuf.len - 1));
int nb = buffer_read(&pcy->ibuf, pcy->fd, -1);
const char *eoq;