odyssey/sources/watchdog.h

42 lines
685 B
C

#ifndef ODYSSEY_WATCHDOG_H
#define ODYSSEY_WATCHDOG_H
/*
* Odyssey.
*
* Scalable PostgreSQL connection pooler.
*/
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/shm.h>
#include <sys/time.h>
#include <sys/file.h>
#include <signal.h>
#include <machinarium.h>
#include "macro.h"
#include "system.h"
#include "kiwi.h"
#include "instance.h"
#include "debugprintf.h"
#include "setproctitle.h"
#include "pid.h"
#include "logger.h"
#include "restart_sync.h"
#define ODYSSEY_WATCHDOG_ITER_INTERVAL 500 // ms
void
od_watchdog_worker(void *arg);
od_retcode_t
od_watchdog_invoke(od_system_t *server);
#endif /* ODYSSEY_WATCHDOG_H */