Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
#include <src/common/daemonize.h>
#include <src/common/error.h>
#include <src/common/daemonize.h>
#include <src/common/error.h>
int lttng_daemonize(pid_t *child_ppid, int *completion_flag,
int close_fds)
{
int lttng_daemonize(pid_t *child_ppid, int *completion_flag,
int close_fds)
{
+#include <common/macros.h>
/*
* Daemonize this process by forking and making the parent wait for the child
/*
* Daemonize this process by forking and making the parent wait for the child
*
* Return 0 on success else -1 on error.
*/
*
* Return 0 on success else -1 on error.
*/
int lttng_daemonize(pid_t *child_ppid, int *completion_flag,
int close_fds);
int lttng_daemonize(pid_t *child_ppid, int *completion_flag,
int close_fds);