1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

doc/signals.rdoc: Clarify a bit where Signal.trap handlers are executed

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2019-04-07 11:26:27 +00:00
parent b7c4e6d11c
commit 012faccf04

View file

@ -18,7 +18,7 @@ for data structures in YOUR code. Ruby implements deferred signal
handling by registering short C functions with only
{async-signal-safe functions}[http://man7.org/linux/man-pages/man7/signal-safety.7.html] as
signal handlers. These short C functions only do enough tell the VM to
run callbacks registered via Signal.trap later in the main VM loop.
run callbacks registered via Signal.trap later in the main Ruby Thread.
== Unsafe methods to call in Signal.trap blocks