#include <unistd.h>
#include <config.h>
-#include <common/lttngerr.h>
+#include <common/error.h>
+#include <common/defaults.h>
#include "poll.h"
if (ret < 0) {
switch (errno) {
case EEXIST:
+ /* If exist, it's OK. */
+ goto end;
case ENOSPC:
case EPERM:
/* Print perror and goto end not failing. Show must go on. */
int ret, fd;
char buf[64];
- poll_max_size = LTTNG_POLL_DEFAULT_SIZE;
+ poll_max_size = DEFAULT_POLL_SIZE;
- fd = open(LTTNG_EPOLL_PROC_PATH, O_RDONLY);
+ fd = open(COMPAT_EPOLL_PROC_PATH, O_RDONLY);
if (fd < 0) {
return;
}
poll_max_size = atoi(buf);
if (poll_max_size <= 0) {
/* Extra precaution */
- poll_max_size = LTTNG_POLL_DEFAULT_SIZE;
+ poll_max_size = DEFAULT_POLL_SIZE;
}
DBG("epoll set max size is %d", poll_max_size);