doveadm-connection.c revision e93184a9055c2530366dfe617e07199603c399dd
/* Copyright (c) 2013-2016 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ostream.h"
#include "str.h"
#include "strescape.h"
#include "master-service.h"
#include "log-error-buffer.h"
#include "doveadm-connection.h"
#include <unistd.h>
struct doveadm_connection {
struct log_error_buffer *errorbuf;
int fd;
};
{
struct log_error_buffer_iter *iter;
int ret = 0;
str_truncate(str, 0);
ret = -1;
break;
}
}
return ret;
}
{
int ret;
/* error / finished */
}
return 1;
}
{
struct doveadm_connection *conn;
if (doveadm_connection_send_errors(conn) < 0)
else {
}
}
{
i_error("close(doveadm connection) failed: %m");
}