X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fshm.c;h=8b7744221e8f3358b27a87fd24d68048ce3f203e;hp=1fc07dbd3915fec4606139cdee3bf1012b4edba9;hb=b9bbdb8ae401dea58c56845fceb6b615225df6b4;hpb=014d7d3b5e9d69989bf776cffb6c21ff7e1d36ff diff --git a/src/bin/lttng-sessiond/shm.c b/src/bin/lttng-sessiond/shm.c index 1fc07dbd3..8b7744221 100644 --- a/src/bin/lttng-sessiond/shm.c +++ b/src/bin/lttng-sessiond/shm.c @@ -106,7 +106,6 @@ static int get_wait_shm(char *shm_path, size_t mmap_size, int global) exit(EXIT_FAILURE); } -#ifndef __FreeBSD__ if (global) { ret = fchown(wait_shm_fd, 0, 0); if (ret < 0) { @@ -131,9 +130,6 @@ static int get_wait_shm(char *shm_path, size_t mmap_size, int global) exit(EXIT_FAILURE); } } -#else -#warning "FreeBSD does not support setting file mode on shm FD." -#endif DBG("Got the wait shm fd %d", wait_shm_fd);