OpenDNSSEC-signer
1.3.15
|
#include "config.h"
#include "shared/locks.h"
#include "shared/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 | ods_thr_fork_create (ods_thread_type *thr, void *(*func)(void *), void *arg) |
void | ods_thr_fork_wait (ods_thread_type thread) |
void | ods_thread_blocksigs (void) |
void ods_thr_fork_create | ( | ods_thread_type * | thr, |
void *(*)(void *) | func, | ||
void * | arg | ||
) |
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 65 of file locks.c.
References ods_fatal_exit().
void ods_thr_fork_wait | ( | ods_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 90 of file locks.c.
References ods_log_error(), and ods_log_warning().
void ods_thread_blocksigs | ( | void | ) |
Definition at line 150 of file locks.c.
References ods_fatal_exit().