Author: bonefish Date: 2011-05-22 02:58:55 +0200 (Sun, 22 May 2011) New Revision: 41643 Changeset: https://dev.haiku-os.org/changeset/41643 Modified: haiku/branches/developer/bonefish/signals/src/system/kernel/signal.cpp Log: QueuedSignalsCounter::Increment(): Fixed reverse check. The method would fail for all sending teams but the kernel. Modified: haiku/branches/developer/bonefish/signals/src/system/kernel/signal.cpp =================================================================== --- haiku/branches/developer/bonefish/signals/src/system/kernel/signal.cpp 2011-05-22 00:19:20 UTC (rev 41642) +++ haiku/branches/developer/bonefish/signals/src/system/kernel/signal.cpp 2011-05-22 00:58:55 UTC (rev 41643) @@ -124,9 +124,9 @@ } // Increment the reference count manually, so we can check atomically. We - // compare the old value <= fLimit, assuming that our (primary) owner has a + // compare the old value > fLimit, assuming that our (primary) owner has a // reference, we don't want to count. - if (atomic_add(&fReferenceCount, 1) <= fLimit) { + if (atomic_add(&fReferenceCount, 1) > fLimit) { ReleaseReference(); return false; }