mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-09 10:42:12 +01:00
I don't know how it's possible, but checksum of fixes-for-process-status-in-ruby-3.patch doesn't match. It seems that commit patches on GitHub are really somehow unstable. :( Please note that I added the Patch-Source header to all downloaded patches, that's why they *all* have a different checksum.
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
Patch-Source: https://github.com/eventmachine/eventmachine/commit/e29ccdefbf4b753dfec513c2df17b3bf1b827425.patch
|
|
--
|
|
From e29ccdefbf4b753dfec513c2df17b3bf1b827425 Mon Sep 17 00:00:00 2001
|
|
From: wordjelly <bhargav.r.raut@gmail.com>
|
|
Date: Sun, 6 Sep 2020 10:02:31 +0530
|
|
Subject: [PATCH] fix: em/pure_ruby intra-iteration element delete bug (#929)
|
|
|
|
---
|
|
lib/em/pure_ruby.rb | 6 +++++-
|
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/em/pure_ruby.rb b/lib/em/pure_ruby.rb
|
|
index f5a93675d..70b28fd6b 100644
|
|
--- a/lib/em/pure_ruby.rb
|
|
+++ b/lib/em/pure_ruby.rb
|
|
@@ -569,14 +569,18 @@ def run
|
|
end
|
|
|
|
def run_timers
|
|
+ timers_to_delete = []
|
|
@timers.each {|t|
|
|
if t.first <= @current_loop_time
|
|
- @timers.delete t
|
|
+ #@timers.delete t
|
|
+ timers_to_delete << t
|
|
EventMachine::event_callback "", TimerFired, t.last
|
|
else
|
|
break
|
|
end
|
|
}
|
|
+ timers_to_delete.map{|c| @timers.delete c}
|
|
+ timers_to_delete = nil
|
|
#while @timers.length > 0 and @timers.first.first <= now
|
|
# t = @timers.shift
|
|
# EventMachine::event_callback "", TimerFired, t.last
|