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:
parent
85a2f5cdd5
commit
80a2d69acc
1 changed files with 4 additions and 1 deletions
|
@ -182,7 +182,10 @@ module Puma
|
||||||
end
|
end
|
||||||
|
|
||||||
def worker(index, master)
|
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"
|
Signal.trap "SIGINT", "IGNORE"
|
||||||
|
|
||||||
@workers = []
|
@workers = []
|
||||||
|
|
Loading…
Add table
Reference in a new issue