summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fa29bfb)
There are two ret variables in the function, not of the same type. Fix
it by moving one to a narrower scope.
Change-Id: If09dc67e95f3d01f9796555fa005638bcb172279
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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)
{
pid_t pid;
/* Get parent pid of this process. */
pid_t pid;
/* Get parent pid of this process. */
} else if (pid == 0) {
int fd;
pid_t sid;
} else if (pid == 0) {
int fd;
pid_t sid;