@@ -1908,19 +1908,18 @@ module Puma
19081908# ...
19091909 thread= server.run# Let's step into this line later.
19101910
1911- # This line will suspend the mainprocess execution.
1912- # And the `thread`'s block (which is method `handle_servers`) will be executed in mainprocess .
1911+ # This line will suspend the mainthread execution.
1912+ # And the `thread`'s block (which is method `handle_servers`) will be executed in mainthread .
19131913# See `Thread#join` for more information.
19141914# I will show you a simple example for using `thread.join`.
19151915# Please search `test_thread_join.rb` in this document.
19161916 thread.join
19171917
1918- # The below line will never be executed because `thread` is always running
1919- # and `thread` has joined to main process.
1918+ # The below line will never be executed because `thread` is always running and `thread` has joined.
19201919# When `$ kill -s SIGTERM puma_process_id`, the below line will still not be executed
19211920# because the block of `Signal.trap "SIGTERM"` in `Puma::Launcher#setup_signals` will be executed.
19221921# If you remove the line `thread.join`, the below line will be executed,
1923- # but the mainprocess will exit after all code executed and all the threads not joined will be killed.
1922+ # but the mainthread will exit after all code executed and all the threads not joined will be killed.
19241923puts " anything which will never be executed..."
19251924end
19261925end
@@ -1992,8 +1991,6 @@ module Puma
19921991# ...
19931992
19941993if background# background: true (for this example)
1995- #
1996- puts " #{ Thread .current.object_id} "
19971994
19981995# It's important part.
19991996# Remember puma created a thread here!