BLooperList: reset list contents after fork.

* No point in keeping those around; their threads are all gone.
This commit is contained in:
Axel Dörfler 2015-06-11 16:59:45 +02:00
parent 8a86ad7593
commit 9bc4bd3811

View File

@ -1,5 +1,5 @@
/*
* Copyright 2001-2011, Haiku.
* Copyright 2001-2015, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
@ -190,6 +190,7 @@ BLooperList::InitAfterFork()
{
// We need to reinitialize the locker to get a new semaphore
new (&fLock) BLocker("BLooperList lock");
fData.clear();
}