projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: allow quiet rotation at destroy of live session
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
fd-limit.c
diff --git
a/src/bin/lttng-sessiond/fd-limit.c
b/src/bin/lttng-sessiond/fd-limit.c
index 17a18afdc7b3f1d8f968f21b6555c2a6f661508d..1e08682e89a56a84e8faec90a36080858e537849 100644
(file)
--- a/
src/bin/lttng-sessiond/fd-limit.c
+++ b/
src/bin/lttng-sessiond/fd-limit.c
@@
-15,7
+15,6
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#define _GNU_SOURCE
#define _LGPL_SOURCE
#include <urcu/uatomic.h>
#include <sys/time.h>
#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 <errno.h>
#include <stdio.h>
#include "fd-limit.h"
+#include <common/error.h>
/* total count of fd. */
static long fd_count;
/* 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) {
ret = getrlimit(RLIMIT_NOFILE, &rlim);
if (ret < 0) {
-
perror
("getrlimit");
+
PERROR
("getrlimit");
}
max_nr_fd = rlim.rlim_cur;
}
}
max_nr_fd = rlim.rlim_cur;
}
This page took
0.023377 seconds
and
4
git commands to generate.