mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 11:59:17 +08:00
Raise number of max FDs for VDev
This commit is contained in:
@@ -56,7 +56,7 @@ pthread_mutex_t filemutex = PTHREAD_MUTEX_INITIALIZER;
|
|||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
#define PX4_MAX_FD 200
|
#define PX4_MAX_FD 300
|
||||||
static device::file_t *filemap[PX4_MAX_FD] = {};
|
static device::file_t *filemap[PX4_MAX_FD] = {};
|
||||||
|
|
||||||
int px4_errno;
|
int px4_errno;
|
||||||
@@ -138,7 +138,8 @@ extern "C" {
|
|||||||
PX4_BACKTRACE();
|
PX4_BACKTRACE();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
PX4_WARN("%s: exceeded maximum number of file descriptors!", thread_name);
|
PX4_WARN("%s: exceeded maximum number of file descriptors, accessing %s",
|
||||||
|
thread_name, path);
|
||||||
ret = -ENOENT;
|
ret = -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user