From fb95946e44868029d08b709f1fa4afac58629927 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 14 Jan 2019 16:00:20 -0500 Subject: [PATCH] kernel: Don't watch the "dev" legacy driver directory. We don't watch its children, and most drivers within it are within subdirectories. Further, all drivers in it are really symlinks to "bin", which we also watch. So there is really not much purpose in watching "dev" directly. Should fix #4638. --- src/system/kernel/device_manager/legacy_drivers.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/system/kernel/device_manager/legacy_drivers.cpp b/src/system/kernel/device_manager/legacy_drivers.cpp index 7af573302f..69d7dd6b55 100644 --- a/src/system/kernel/device_manager/legacy_drivers.cpp +++ b/src/system/kernel/device_manager/legacy_drivers.cpp @@ -1060,7 +1060,7 @@ DirectoryWatcher::EventOccurred(NotificationService& service, int32 opcode = event->GetInt32("opcode", -1); dev_t device = event->GetInt32("device", -1); ino_t directory = event->GetInt64("directory", -1); - const char *name = event->GetString("name", NULL); + const char* name = event->GetString("name", NULL); if (opcode == B_ENTRY_MOVED) { // Determine whether it's a move within, out of, or into one @@ -1488,7 +1488,6 @@ legacy_driver_probe(const char* subPath) path.UnlockBuffer(); path.Append("kernel/drivers"); - start_watching(path.Path(), "dev"); start_watching(path.Path(), "bin"); } else path.UnlockBuffer();