service-log.c revision d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76
/* Copyright (c) 2005-2009 Dovecot authors, see the included COPYING file */
#include "common.h"
#include "fd-close-on-exec.h"
#include "array.h"
#include "service.h"
#include "service-log.h"
#include <unistd.h>
{
struct log_service_handshake handshake;
unsigned int i, count;
for (i = 0; i < count; i++) {
continue;
i_error("pipe() failed: %m");
ret = -1;
break;
}
if (ret < 0) {
i_error("write(log handshake) failed: %m");
break;
}
i_error("write(log handshake) didn't write everything");
ret = -1;
break;
}
}
if (ret < 0) {
return -1;
}
return 0;
}
{
unsigned int i, count;
for (i = 0; i < count; i++) {
i_error("service(%s): close(log_fd) failed: %m",
}
i_error("service(%s): close(log_fd) failed: %m",
}
}
}
}
struct service_list *service_list,
{
unsigned int i, n, count;
for (i = n = 0; i < count; i++) {
n++; *fd_count += 1;
}
}
}