8590779c27c3b62d1f2e5e3dced53a57914b4666
1 #ifndef LTTNG_DAEMONIZE_H
2 #define LTTNG_DAEMONIZE_H
5 * Copyright (C) 2013 David Goulet <dgoulet@efficios.com>
6 * Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 * SPDX-License-Identifier: GPL-2.0-only
13 #include <common/macros.h>
20 * Daemonize this process by forking and making the parent wait for the child
21 * to signal it indicating readiness. Once received, the parent successfully
24 * The child process undergoes the same action that daemon(3) does meaning
25 * setsid, chdir, and dup /dev/null into 0, 1 and 2.
27 * Return 0 on success else -1 on error.
29 int lttng_daemonize(pid_t
*child_ppid
, int *completion_flag
,
36 #endif /* LTTNG_DAEMONIZE_H */
This page took 0.035621 seconds and 4 git commands to generate.