X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fdaemonize.c;h=b12194ee9480c9aab2933258c987a9adff126100;hb=f0b03c2289d0f84c1e2dc41be70cd0bcc222e181;hp=a8e290603091328e23012d8d39ffda79574d0231;hpb=99ed9c436a035b26c64b8efcbaec8b3d91d754d6;p=lttng-tools.git diff --git a/src/common/daemonize.c b/src/common/daemonize.c index a8e290603..b12194ee9 100644 --- a/src/common/daemonize.c +++ b/src/common/daemonize.c @@ -16,11 +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 @@ -28,6 +28,7 @@ #include #include +LTTNG_HIDDEN int lttng_daemonize(pid_t *child_ppid, int *completion_flag, int close_fds) {