#include <sys/resource.h>
#include <sys/time.h>
-#include <lttngerr.h>
+#include <common/defaults.h>
+#include <common/error.h>
#include "poll.h"
struct rlimit lim;
/* Default value */
- poll_max_size = LTTNG_POLL_DEFAULT_SIZE;
+ poll_max_size = DEFAULT_POLL_SIZE;
ret = getrlimit(RLIMIT_NOFILE, &lim);
if (ret < 0) {
poll_max_size = lim.rlim_cur;
if (poll_max_size <= 0) {
/* Extra precaution */
- poll_max_size = LTTNG_POLL_DEFAULT_SIZE;
+ poll_max_size = DEFAULT_POLL_SIZE;
}
DBG("poll set max size set to %u", poll_max_size);