auth-process.c revision 395cfd9f83ada53f9d434943c062cbe1c80bae2a
ecc81625167ed96c04c02aa190a1ea5baa65b474Timo Sirainen/* Copyright (C) 2002 Timo Sirainen */
ecc81625167ed96c04c02aa190a1ea5baa65b474Timo Sirainen char reply_buf[sizeof(struct auth_cookie_reply_data)];
c0435c854a0e7246373b9752d163095cc4fbe985Timo Sirainen struct waiting_request *requests, **next_request;
ecc81625167ed96c04c02aa190a1ea5baa65b474Timo Sirainen unsigned int id;
ecc81625167ed96c04c02aa190a1ea5baa65b474Timo Sirainenstatic void auth_process_destroy(struct auth_process *p);
c0435c854a0e7246373b9752d163095cc4fbe985Timo Sirainenstatic void push_request(struct auth_process *process, unsigned int id,
int ret;
if (ret < 0) {
if (!p->initialized) {
ret--;
p->reply_pos = 0;
static struct auth_process *
struct auth_process *p;
processes = p;
if (!p->initialized)
if (*pos == p) {
i_free(p);
const char *path;
if (pid < 0) {
if (pid != 0) {
return pid;
if (listen_fd < 0)
closelog();
struct auth_process *p;
return NULL;
struct auth_process *p;
unsigned int count = 0;
count++;
return count;
void auth_processes_destroy_all(void)
unsigned int count;
void auth_processes_init(void)
void auth_processes_deinit(void)