X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fdaemonize.c;h=300851bb3ca6e01a8b3d10fe824c8b2935172b0d;hp=b9d0b03faeed08c100ec0d0587030e30817c1d1a;hb=790c779e5d45e5ea024c221e60d3dd2277a7b7b9;hpb=6c1c0768320135c6936c371b09731851b508c023 diff --git a/src/common/daemonize.c b/src/common/daemonize.c index b9d0b03fa..300851bb3 100644 --- a/src/common/daemonize.c +++ b/src/common/daemonize.c @@ -16,10 +16,9 @@ * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE #define _LGPL_SOURCE #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) {