diff options
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | ext/dl/lib/dl/import.rb | 4 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,10 @@ +Mon Mar 12 00:59:19 2007 Akinori MUSHA <knu@iDaemons.org> + + * ext/dl/lib/dl/import.rb (DL::Importable::Internal::import, + DL::Importable::Internal::callback): Avoid race condition for an + instance variable; submitted by sheepman <sheepman AT + sheepman.sakura.ne.jp> in [ruby-dev:30530]. + Sun Mar 11 18:57:50 2007 Akinori MUSHA <knu@iDaemons.org> * misc/README: Add a note about ruby-electric.el. diff --git a/ext/dl/lib/dl/import.rb b/ext/dl/lib/dl/import.rb index 63c9b2c050..01ee2490e8 100644 --- a/ext/dl/lib/dl/import.rb +++ b/ext/dl/lib/dl/import.rb @@ -87,7 +87,7 @@ module DL " rs = dec.call(rs) if (dec && rs)", " @retval = r", " @args = rs", - " @retval", + " r", "}", ].join("\n")) @@ -169,7 +169,7 @@ module DL " rs = dec.call(rs) if dec", " @retval = r", " @args = rs", - " return @retval", + " return r", "end", "module_function :#{mname}", ].join("\n") |
