Cleanup: Replace all perror() uses by the PERROR macro
[lttng-tools.git] / src / bin / lttng-sessiond / fd-limit.c
index a886d33b9c9d49cb9a84319c2ade68244b38d06a..aefe62f24222fede390779f1d74b5fa39f0af3c4 100644 (file)
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <urcu/uatomic.h>
 #include <sys/time.h>
 #include <sys/resource.h>
 #include <errno.h>
 #include <stdio.h>
 #include "fd-limit.h"
+#include <common/error.h>
 
 /* total count of fd. */
 static long fd_count;
@@ -64,7 +66,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.023375 seconds and 4 git commands to generate.