base-linux: fix race condition in IPC code

Fixes #1013.
This commit is contained in:
Christian Prochaska 2014-01-24 20:36:49 +01:00 committed by Christian Helmuth
parent 5447c406e5
commit ddc79d5563

View File

@ -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;