libosmocore 1.11.0.30-c17053.202507072026
Osmocom core library
|
Routines for helping with the osmocom application setup. More...
#include <osmocom/core/defs.h>
Go to the source code of this file.
Functions | |
void | osmo_init_ignore_signals (void) |
Ignore SIGPIPE, SIGALRM, SIGHUP and SIGIO. | |
int | osmo_init_logging (const struct log_info *) OSMO_DEPRECATED("use osmo_init_logging2() instead to avoid a NULL talloc ctx") |
Initialize the osmocom logging framework. | |
int | osmo_init_logging2 (void *ctx, const struct log_info *log_info) |
int | osmo_daemonize (void) |
Turn the current process into a background daemon. | |
Variables | |
struct log_target * | osmo_stderr_target |
the default logging target, logging to stderr | |
Routines for helping with the osmocom application setup.
Turn the current process into a background daemon.
This function will fork the process, exit the parent and set umask, create a new session, close stdin/stdout/stderr and chdir to /tmp
References pid.
Ignore SIGPIPE, SIGALRM, SIGHUP and SIGIO.
References sighup_hdlr().
Initialize the osmocom logging framework.
[in] | log_info | Array of available logging sub-systems |
This function initializes the osmocom logging systems. It also creates the default (stderr) logging target.
References osmo_init_logging2().
References log_add_target(), log_init(), log_set_all_filter(), log_target_create_stderr(), and osmo_stderr_target.
Referenced by osmo_init_logging().
|
extern |
the default logging target, logging to stderr
Referenced by osmo_init_logging2().