mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 18:46:38 -04:00
11 lines
438 B
C++
11 lines
438 B
C++
--- lib/ProxySQL_Admin.cpp.orig 2024-04-05 16:24:43 UTC
|
|
+++ lib/ProxySQL_Admin.cpp
|
|
@@ -9507,7 +9507,7 @@ void ProxySQL_Admin::p_update_metrics() {
|
|
* @return On success, the number of currently opened file descriptors, '-1' otherwise.
|
|
*/
|
|
int32_t get_open_fds() {
|
|
- DIR* dir = opendir("/proc/self/fd");
|
|
+ DIR* dir = opendir("/dev/fd");
|
|
if (dir == NULL) {
|
|
proxy_error("'opendir()' failed with error: '%d'\n", errno);
|
|
return -1;
|