1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Add the proctitle tag to the worker. Fixes #633

This commit is contained in:
Evan Phoenix 2015-01-20 10:03:34 -08:00
parent 85a2f5cdd5
commit 80a2d69acc

View file

@ -182,7 +182,10 @@ module Puma
end
def worker(index, master)
$0 = "puma: cluster worker #{index}: #{master}"
title = "puma: cluster worker #{index}: #{master}"
title << " [#{@options[:tag]}]" if @options[:tag]
$0 = title
Signal.trap "SIGINT", "IGNORE"
@workers = []