Skip to content

Commit 0f3b984

Browse files
committed
ProcessManager: use unique_lock when erasing
1 parent bb4bee8 commit 0f3b984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/processes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void ProcessManager::checkPidfd(int pidfd) {
189189

190190
Pin<ProcessObject> po;
191191
{
192-
std::shared_lock lk(m);
192+
std::unique_lock lk(m);
193193
auto it = mReg.find(pidfd);
194194
if (it != mReg.end()) {
195195
po = std::move(it->second);

0 commit comments

Comments
 (0)