BLooperList: reset list contents after fork.
* No point in keeping those around; their threads are all gone.
This commit is contained in:
parent
8a86ad7593
commit
9bc4bd3811
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user