X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fdaemonize.c;h=300851bb3ca6e01a8b3d10fe824c8b2935172b0d;hp=a8e290603091328e23012d8d39ffda79574d0231;hb=790c779e5d45e5ea024c221e60d3dd2277a7b7b9;hpb=99ed9c436a035b26c64b8efcbaec8b3d91d754d6;ds=sidebyside diff --git a/src/common/daemonize.c b/src/common/daemonize.c index a8e290603..300851bb3 100644 --- a/src/common/daemonize.c +++ b/src/common/daemonize.c @@ -16,9 +16,9 @@ * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE +#define _LGPL_SOURCE #include -#include +#include #include #include #include @@ -28,6 +28,7 @@ #include #include +LTTNG_HIDDEN int lttng_daemonize(pid_t *child_ppid, int *completion_flag, int close_fds) {