Project

General

Profile

Actions

Backport #5509

closed

[patch] scope error in Sync#sync_try_lock

Added by angdraug (Dmitry Borodaenko) about 13 years ago. Updated over 8 years ago.

Status:
Rejected
Assignee:
-
[ruby-core:40511]

Description

The fix says it all:

--- sync.rb.bak 2011-10-29 18:28:13.684027886 +0300
+++ sync.rb 2011-10-29 18:28:47.136028818 +0300
@@ -127,6 +127,7 @@

locking methods.

def sync_try_lock(mode = EX)
return unlock if mode == UN

  • ret = nil
    @sync_mutex.synchronize do
    ret = sync_try_lock_sub(mode)
    end
Actions #1

Updated by nagachika (Tomoyuki Chikanaga) about 13 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby master to Backport193
  • Category deleted (lib)

Thank you for your reporting.

In trunk r29726 contains fix for lib/sync.rb.
Please backport r29726 to 1.9.3 and 1.9.2.

Actions #2

Updated by kosaki (Motohiro KOSAKI) almost 13 years ago

  • Project changed from Backport193 to Backport192

ruby_1_9_3 branch contains r29726. let's assign this to backport92.

Actions #3

Updated by naruse (Yui NARUSE) over 8 years ago

  • Status changed from Open to Rejected
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0