Philippe was right, of course, the media checker thread did not bother to
check the fTerminating flag, so it would never quit (too bad no one ever quits it anyway :-)). Thanks for proofreading! git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22919 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1129,7 +1129,7 @@ KDiskDeviceManager::_ScanPartition(KPartition *partition)
|
|||||||
status_t
|
status_t
|
||||||
KDiskDeviceManager::_CheckMediaStatus()
|
KDiskDeviceManager::_CheckMediaStatus()
|
||||||
{
|
{
|
||||||
while (true) {
|
while (!fTerminating) {
|
||||||
int32 cookie = 0;
|
int32 cookie = 0;
|
||||||
while (KDiskDevice* device = RegisterNextDevice(&cookie)) {
|
while (KDiskDevice* device = RegisterNextDevice(&cookie)) {
|
||||||
DeviceWriteLocker locker(device);
|
DeviceWriteLocker locker(device);
|
||||||
|
|||||||
Reference in New Issue
Block a user