X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fdaemonize.h;h=8590779c27c3b62d1f2e5e3dced53a57914b4666;hb=7966af5763c4aaca39df9bbfa9277ff15715c720;hp=2c88f06b7ddaa1dd1ac9224997e220e0dda8f3cb;hpb=3a5f70173aa04d11ccb22694d5d31a702cad33ab;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 */