X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fdaemonize.h;h=8590779c27c3b62d1f2e5e3dced53a57914b4666;hb=3afa94aeca5a0daae40fd7b6cc96b7e4c150c7d8;hp=2c88f06b7ddaa1dd1ac9224997e220e0dda8f3cb;hpb=ca806b0b247f89c62ac628a7779ae84049a8c2d7;p=lttng-tools.git diff --git a/src/common/daemonize.h b/src/common/daemonize.h index 2c88f06b7..8590779c2 100644 --- a/src/common/daemonize.h +++ b/src/common/daemonize.h @@ -12,6 +12,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* * Daemonize this process by forking and making the parent wait for the child * to signal it indicating readiness. Once received, the parent successfully @@ -25,4 +29,8 @@ int lttng_daemonize(pid_t *child_ppid, int *completion_flag, int close_fds); +#ifdef __cplusplus +} +#endif + #endif /* LTTNG_DAEMONIZE_H */