odyssey/sources/pid.h

26 lines
419 B
C
Raw Normal View History

#ifndef ODYSSEY_PID_H
#define ODYSSEY_PID_H
/*
2018-03-12 14:03:15 +00:00
* Odyssey.
*
2018-04-04 13:19:58 +00:00
* Scalable PostgreSQL connection pooler.
*/
typedef struct od_pid od_pid_t;
struct od_pid {
pid_t pid;
char pid_sz[16];
int pid_len;
};
void od_pid_init(od_pid_t *);
int od_pid_create(od_pid_t *, char *);
int od_pid_unlink(od_pid_t *, char *);
#define OD_SIG_LOG_ROTATE SIGUSR1
2020-07-26 07:58:15 +00:00
#define OD_SIG_GRACEFUL_SHUTDOWN SIGUSR2
#endif /* ODYSSEY_PID_H */