From 9bc4bd38116bec4f319fc28f7c96be218b00bacb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 11 Jun 2015 16:59:45 +0200 Subject: [PATCH] BLooperList: reset list contents after fork. * No point in keeping those around; their threads are all gone. --- src/kits/app/LooperList.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/app/LooperList.cpp b/src/kits/app/LooperList.cpp index 98902fcad1..d468c2b2a4 100644 --- a/src/kits/app/LooperList.cpp +++ b/src/kits/app/LooperList.cpp @@ -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(); }