/* Copyright (c) 2007-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "lib-signals.h"
#include "hash.h"
#include "child-wait.h"
struct child_wait {
unsigned int pid_count;
void *context;
};
static int child_wait_refcount = 0;
/* pid_t => wait */
struct child_wait *
void *context)
{
return wait;
}
{
void *key;
/* this should be rare, so iterating hash is fast enough */
break;
}
}
}
}
{
}
{
}
static void
{
}
}
i_error("waitpid() failed: %m");
}
void child_wait_switch_ioloop(void)
{
}
void child_wait_init(void)
{
if (child_wait_refcount++ > 0) {
return;
}
}
void child_wait_deinit(void)
{
void *key;
i_assert(child_wait_refcount > 0);
if (--child_wait_refcount > 0) {
return;
}
}