orbis-kernel: sys_evf_create: ignore shared evf duplication

This commit is contained in:
DH 2024-10-06 13:05:23 +03:00
parent 42ad5c1cc9
commit 8f46b420c9

View file

@ -226,10 +226,6 @@ orbis::SysResult orbis::sys_evf_create(Thread *thread, ptr<const char[32]> name,
auto [insertedEvf, inserted] =
thread->tproc->context->createEventFlag(_name, attrs, initPattern);
if (!inserted) {
return ErrorCode::EXIST; // FIXME: verify
}
eventFlag = insertedEvf;
} else {
eventFlag = knew<EventFlag>(attrs, initPattern);