X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fdaemonize.c;h=cb094b1effa52f7145132792d2845b7ce92e6ea5;hp=594cc58155b59608801d355ec3f419e0d17893c6;hb=4062406e2a957323852dca73a41e0239f6b9df03;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a diff --git a/src/common/daemonize.c b/src/common/daemonize.c index 594cc5815..cb094b1ef 100644 --- a/src/common/daemonize.c +++ b/src/common/daemonize.c @@ -22,7 +22,6 @@ 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. */ @@ -35,6 +34,7 @@ int lttng_daemonize(pid_t *child_ppid, int *completion_flag, } else if (pid == 0) { int fd; pid_t sid; + int ret; /* Child */