port: FreeBSD does support fchown and fchmod on a shm fd
[lttng-tools.git] / src / bin / lttng-sessiond / shm.c
index 1fc07dbd3915fec4606139cdee3bf1012b4edba9..8b7744221e8f3358b27a87fd24d68048ce3f203e 100644 (file)
@@ -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);
 
This page took 0.024395 seconds and 4 git commands to generate.