Mercurial > dovecot > core-2.2
view src/lib/hostpid.h @ 22656:1789bf2a1e01
director: Make sure HOST-RESET-USERS isn't used with max_moving_users=0
The reset command would just hang in that case. doveadm would never have
sent this, so this is just an extra sanity check.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sun, 05 Nov 2017 23:51:56 +0200 |
parents | a6b40687c0a4 |
children |
line wrap: on
line source
#ifndef HOSTPID_H #define HOSTPID_H /* These environments override the hostname/hostdomain if they're set. Master process normally sets these to child processes. */ #define MY_HOSTNAME_ENV "DOVECOT_HOSTNAME" #define MY_HOSTDOMAIN_ENV "DOVECOT_HOSTDOMAIN" extern const char *my_hostname; extern const char *my_pid; /* Initializes my_hostname and my_pid. */ void hostpid_init(void); void hostpid_deinit(void); /* Returns the current host+domain, or if it fails fallback to returning hostname. */ const char *my_hostdomain(void); #endif