Add the sessiond notification-handling subsystem
[lttng-tools.git] / src / bin / lttng-sessiond / fd-limit.c
index 17a18afdc7b3f1d8f968f21b6555c2a6f661508d..1e08682e89a56a84e8faec90a36080858e537849 100644 (file)
@@ -15,7 +15,6 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
 #define _LGPL_SOURCE
 #include <urcu/uatomic.h>
 #include <sys/time.h>
@@ -23,6 +22,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include "fd-limit.h"
+#include <common/error.h>
 
 /* total count of fd. */
 static long fd_count;
@@ -65,7 +65,7 @@ void lttng_fd_init(void)
 
        ret = getrlimit(RLIMIT_NOFILE, &rlim);
        if (ret < 0) {
-               perror("getrlimit");
+               PERROR("getrlimit");
        }
        max_nr_fd = rlim.rlim_cur;
 }
This page took 0.024748 seconds and 5 git commands to generate.