* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <unistd.h>
-#include <paths.h>
+#include <common/compat/paths.h>
#include <fcntl.h>
-#include <wait.h>
+#include <sys/wait.h>
#include <stdlib.h>
#include <urcu/system.h>
-#include <src/common/daemonize.h>
-#include <src/common/error.h>
+#include <common/daemonize.h>
+#include <common/error.h>
+LTTNG_HIDDEN
int lttng_daemonize(pid_t *child_ppid, int *completion_flag,
int close_fds)
{
/*
* From this point on, the parent can exit and the child
- * is now an operationnal session daemon ready to serve
+ * is now an operational session daemon ready to serve
* clients and applications.
*/
exit(EXIT_SUCCESS);