We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 57497af + 613a42a commit e96fb57Copy full SHA for e96fb57
1 file changed
core/bessd.cc
@@ -443,9 +443,12 @@ bool LoadPlugins(const std::string &directory) {
443
}
444
dirent *entry;
445
while ((entry = readdir(dir)) != nullptr) {
446
- if (entry->d_type == DT_REG && HasSuffix(entry->d_name, ".so")) {
+ if ((entry->d_type == DT_REG || entry->d_type == DT_LNK)
447
+ && HasSuffix(entry->d_name, ".so")) {
448
const std::string full_path = directory + "/" + entry->d_name;
449
+ LOG(INFO) << "Loading plugin: " << full_path;
450
if (!LoadPlugin(full_path)) {
451
+ LOG(WARNING) << "Cannot load plugin " << full_path << "dlerror=" << dlerror();
452
closedir(dir);
453
return false;
454
0 commit comments