BLooperList: reset list contents after fork.
* No point in keeping those around; their threads are all gone.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2001-2011, Haiku.
|
* Copyright 2001-2015, Haiku.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -190,6 +190,7 @@ BLooperList::InitAfterFork()
|
|||||||
{
|
{
|
||||||
// We need to reinitialize the locker to get a new semaphore
|
// We need to reinitialize the locker to get a new semaphore
|
||||||
new (&fLock) BLocker("BLooperList lock");
|
new (&fLock) BLocker("BLooperList lock");
|
||||||
|
fData.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user