OpenDNSSEC-signer 1.2.1
|
#include "config.h"
#include "scheduler/locks.h"
#include "util/log.h"
#include <errno.h>
#include <signal.h>
#include <string.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <unistd.h>
Go to the source code of this file.
Functions | |
void | se_thr_fork_create (se_thread_type *thr, void *(*func)(void *), void *arg) |
void | se_thr_fork_wait (se_thread_type thread) |
void | se_thread_blocksigs (void) |
void se_thr_fork_create | ( | se_thread_type * | thr, |
void *(*)(void *) | func, | ||
void * | arg | ||
) |
Threading and locking. No threading available: fork a new process. This means no shared data structure, and no locking. Only the main thread ever returns. Exits on errors.
thr,: | the location where to store the thread-id. |
func,: | function body of the thread. Return value of func is lost. |
arg,: | user argument to func. |
Definition at line 63 of file locks.c.
References se_fatal_exit().
void se_thr_fork_wait | ( | se_thread_type | thread | ) |
There is no threading. Wait for a process to terminate. Note that ub_thread_t is defined as pid_t.
thread,: | the process id to wait for. |
Definition at line 86 of file locks.c.
References se_log_error(), and se_log_warning().
void se_thread_blocksigs | ( | void | ) |
Definition at line 141 of file locks.c.
References se_fatal_exit().