doveadm-master.c revision 2a325b952fe47346d76221d2c07a3fe02faf8800
/* Copyright (c) 2010-2013 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "doveadm.h"
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#define MASTER_PID_FILE_NAME "master.pid"
{
char buf[32];
int fd;
bool found;
if (fd == -1) {
return FALSE;
}
if (ret <= 0) {
if (ret == 0)
else
} else {
ret--;
else {
}
}
i_close_fd(&fd);
return found;
}
void doveadm_master_send_signal(int signo)
{
const char *pidfile_path;
unsigned int i;
/* wait for a while for the process to die */
usleep(1000);
for (i = 0; i < 30; i++) {
i_error("kill() failed: %m");
break;
}
usleep(100000);
}
}
}
{
}
{
}
struct doveadm_cmd doveadm_cmd_stop = {
};
struct doveadm_cmd doveadm_cmd_reload = {
};