From ddc79d5563205acda3241c171b0d63978b55820c Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Fri, 24 Jan 2014 20:36:49 +0100 Subject: [PATCH] base-linux: fix race condition in IPC code Fixes #1013. --- base-linux/src/base/ipc/ipc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base-linux/src/base/ipc/ipc.cc b/base-linux/src/base/ipc/ipc.cc index a3b15d8242..befe9f859f 100644 --- a/base-linux/src/base/ipc/ipc.cc +++ b/base-linux/src/base/ipc/ipc.cc @@ -135,7 +135,7 @@ static int lookup_tid_by_client_socket(int sd) * Synchronize calls so that the large 'sockaddr_un' can be allocated * in the BSS rather than the stack. */ - Lock lock; + static Lock lock; Lock::Guard guard(lock); static sockaddr_un name;