#include <common/daemonize.h>
#include <common/error.h>
-LTTNG_HIDDEN
int lttng_daemonize(pid_t *child_ppid, int *completion_flag,
int close_fds)
{
- int ret;
pid_t pid;
/* Get parent pid of this process. */
} else if (pid == 0) {
int fd;
pid_t sid;
+ int ret;
/* Child */