X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fdaemonize.c;h=b12194ee9480c9aab2933258c987a9adff126100;hb=cf0bcb51ea857687a353d2851e572dba6cc63cb0;hp=b9d0b03faeed08c100ec0d0587030e30817c1d1a;hpb=6c1c0768320135c6936c371b09731851b508c023;p=lttng-tools.git diff --git a/src/common/daemonize.c b/src/common/daemonize.c index b9d0b03fa..b12194ee9 100644 --- a/src/common/daemonize.c +++ b/src/common/daemonize.c @@ -16,12 +16,11 @@ * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE #define _LGPL_SOURCE #include -#include +#include #include -#include +#include #include #include @@ -29,6 +28,7 @@ #include #include +LTTNG_HIDDEN int lttng_daemonize(pid_t *child_ppid, int *completion_flag, int close_fds) {