X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Ffd-limit.c;h=626b4662c32c67a97252b248824d3d67666354bd;hp=a886d33b9c9d49cb9a84319c2ade68244b38d06a;hb=b8a1b0bd3964381c9ec6a8df26bd37cd7405a83f;hpb=4063050c0e90b27d34ee8de570b049cc076119a4 diff --git a/src/bin/lttng-sessiond/fd-limit.c b/src/bin/lttng-sessiond/fd-limit.c index a886d33b9..626b4662c 100644 --- a/src/bin/lttng-sessiond/fd-limit.c +++ b/src/bin/lttng-sessiond/fd-limit.c @@ -1,27 +1,18 @@ /* - * Copyright (C) 2012 - Mathieu Desnoyers + * Copyright (C) 2012 Mathieu Desnoyers * - * 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 _GNU_SOURCE +#define _LGPL_SOURCE #include #include #include #include #include #include "fd-limit.h" +#include /* total count of fd. */ static long fd_count; @@ -64,7 +55,7 @@ void lttng_fd_init(void) ret = getrlimit(RLIMIT_NOFILE, &rlim); if (ret < 0) { - perror("getrlimit"); + PERROR("getrlimit"); } max_nr_fd = rlim.rlim_cur; }