From 27d38ee9761fb45cf4fd48e000402b0bb3c4df15 Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Fri, 24 Dec 2010 02:41:08 +0000 Subject: [PATCH] Drop into debugger if the looper can't be locked. This gets triggered randomly by net_server. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39934 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/storage/PathMonitor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/storage/PathMonitor.cpp b/src/kits/storage/PathMonitor.cpp index 33bdddc1a1..27ee2f1fae 100644 --- a/src/kits/storage/PathMonitor.cpp +++ b/src/kits/storage/PathMonitor.cpp @@ -211,7 +211,8 @@ PathHandler::PathHandler(const char* path, uint32 flags, BMessenger target, TRACE("PathHandler: %s\n", path); - looper->Lock(); + if (!looper->Lock()) + debugger("PathHandler: failed to lock the looper"); looper->AddHandler(this); looper->Unlock();