Fix incorrect msgq path in prefix.h (#36943)

This commit is contained in:
Dean Lee
2025-12-21 08:33:52 +08:00
committed by GitHub
parent 67742699cc
commit e9a37d99c3

View File

@@ -13,7 +13,7 @@ public:
if (prefix.empty()) {
prefix = util::random_string(15);
}
msgq_path = Path::shm_path() + "/" + prefix;
msgq_path = Path::shm_path() + "/msgq_" + prefix;
bool ret = util::create_directories(msgq_path, 0777);
assert(ret);
setenv("OPENPILOT_PREFIX", prefix.c_str(), 1);