switchman 1.13.1 → 1.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/switchman/shard_internal.rb +15 -1
- data/lib/switchman/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f0444c8114ea5df8627ea4124a5c99c0aafd64840493f6e410fade341bedb24
|
4
|
+
data.tar.gz: 44176439003933f030ba0eac73b46dbe7aa6a9a9712c4a9359027d20c7948296
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2771dd0ecf117e53a327a9c9092b6efca169fc9dfadc63efc486d401c00646eda3e2a819d3a783ac2be4cd971929366f2c6187fffe5b48f8f674c6cc94eea333
|
7
|
+
data.tar.gz: a2eaae7a569c79abdd0658390d28d3272767d586a78c3bf19bf616eeaefe65ca774d0d6d5ff49a4241cfc7149f274881f42da5dd6d791fb98c9aa97a98af463c
|
@@ -254,7 +254,21 @@ module Switchman
|
|
254
254
|
pid, io_in, io_out, io_err = Open4.pfork4(lambda do
|
255
255
|
begin
|
256
256
|
Switchman.config[:on_fork_proc]&.call
|
257
|
-
|
257
|
+
|
258
|
+
# set a pretty name for the process title, up to 128 characters
|
259
|
+
# (we don't actually know the limit, depending on how the process
|
260
|
+
# was started)
|
261
|
+
# first, simplify the binary name by stripping directories,
|
262
|
+
# then truncate arguments as necessary
|
263
|
+
bin = File.basename(Process.argv0)
|
264
|
+
max_length = 128 - bin.length - name.length - 3
|
265
|
+
args = ARGV.join(" ")
|
266
|
+
if max_length >= 0
|
267
|
+
args = args[0..max_length]
|
268
|
+
end
|
269
|
+
new_title = [bin, args, name].join(" ")
|
270
|
+
Process.setproctitle(new_title)
|
271
|
+
|
258
272
|
with_each_shard(subscope, categories, options) { yield }
|
259
273
|
exception_pipe.last.close
|
260
274
|
rescue => e
|
data/lib/switchman/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: switchman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.13.
|
4
|
+
version: 1.13.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-04-
|
13
|
+
date: 2019-04-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|