X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fdaemonize.c;fp=src%2Fcommon%2Fdaemonize.c;h=cb094b1effa52f7145132792d2845b7ce92e6ea5;hp=594cc58155b59608801d355ec3f419e0d17893c6;hb=44635d77b591f83a80d48cd93497bd1cd6aa788d;hpb=fa29bfbf73e837b936d80b4d5a1206dfb8496f07 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 */