Skip to content

Commit ba0dc3b

Browse files
WIP
1 parent 7c0b5f2 commit ba0dc3b

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

lib/async/container/controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def run(signals: Async::Signals.default)
309309
end
310310
end
311311
rescue Interrupt
312-
self.stop(false)
312+
# Ignore - normal shutdown - can propagate from top level Sync.
313313
end
314314
end
315315
end

lib/async/container/forked.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ def self.fork(**options)
104104
# Fork from `Thread.new` so the child does not inherit the parent fiber scheduler or the current caller's fiber stack. Only this short-lived thread is copied into the child process:
105105
::Thread.new do
106106
::Process.fork do
107-
# Convert process signals into pending interrupts on the surviving fork thread so they respect `Thread.handle_interrupt` in the child:
108-
::Signal.trap(:INT){::Thread.current.raise(::Interrupt)}
109-
::Signal.trap(:TERM){::Thread.current.raise(::Interrupt)}
110-
111107
# Reset interrupt masking - `Exception` is a fast path:
112108
::Thread.handle_interrupt(Exception => :immediate) do
113109
yield Instance.for(process)

0 commit comments

Comments
 (0)