common: Add index allocator for error counters
[lttng-tools.git] / src / bin / lttng-sessiond / shm.c
index 60a92cd15d3461850e898cdb95c4b00448ef12ba..8b7744221e8f3358b27a87fd24d68048ce3f203e 100644 (file)
@@ -1,19 +1,9 @@
 /*
- * Copyright (C)  2011 - David Goulet <david.goulet@polymtl.ca>
- *                       Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * Copyright (C) 2011 David Goulet <david.goulet@polymtl.ca>
+ * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License, version 2 only,
- * as published by the Free Software Foundation.
+ * SPDX-License-Identifier: GPL-2.0-only
  *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
 #define _LGPL_SOURCE
@@ -116,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) {
@@ -141,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.026262 seconds and 4 git commands to generate.