logjam_agent 0.33.1 → 0.33.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29e2045e24e8a76d6cd8d13c4521562f237849880f39eec65c6be243b275cd06
4
- data.tar.gz: 264a22f43eafaca127977d689ede51a657c4aa9403f5339528c56647f0a502c7
3
+ metadata.gz: f7a947089e6779f029fce195520f09439948a72164dd4ee53671e129631406a9
4
+ data.tar.gz: 21daffea283fec4e44bd3d9fac3d6a47ea14c35ee1bf8b982e7a2c2c3fbd1341
5
5
  SHA512:
6
- metadata.gz: 4fb90fd911820483409d59f8b0d8f272fe06b55460127899edbfc77da57cf064b32c633dee61bd1bf113acbf205487689bfdc43d623c6d8faaea4bbff9523bd5
7
- data.tar.gz: 86470089e012dbf3462725708e65e0deb3a5d8d9cb1268452fb051948d80f55ce6c2361ffde3064aff41f8c9049a5d3452cfad4cbb8c7e87e455142289aed8f2
6
+ metadata.gz: 40973d3ac9de2bf532f94b4b4aa1f5ede0aa166b9bd5182291cf21063908b06b37e281042497ff9961a8342f2d589148f685f25a8a78a516e9662fb0e2bae982
7
+ data.tar.gz: 8fb0c2d199b12967e4d9e099f73e651ff5273c433ea992495963da1a5379f01e93471239b2dc4e22c165536a0abf71e13a747a28f9118a4e1f12cd723cecf0f7
@@ -1,3 +1,3 @@
1
1
  module LogjamAgent
2
- VERSION = "0.33.1"
2
+ VERSION = "0.33.2"
3
3
  end
@@ -45,7 +45,8 @@ module LogjamAgent
45
45
  begin
46
46
  require 'ffi-rzmq'
47
47
  context = ZMQ::Context.new(1)
48
- at_exit { context.terminate }
48
+ pid = Process.pid
49
+ at_exit { context.terminate if Process.pid == pid }
49
50
  context
50
51
  end
51
52
  end
@@ -59,7 +60,8 @@ module LogjamAgent
59
60
 
60
61
  def ensure_ping_at_exit
61
62
  return if @ping_ensured
62
- at_exit { ping; reset }
63
+ pid = Process.pid
64
+ at_exit { (ping; reset) if Process.pid == pid }
63
65
  @ping_ensured = true
64
66
  end
65
67
 
@@ -99,7 +101,8 @@ module LogjamAgent
99
101
  if LogjamAgent.ensure_ping_at_exit
100
102
  ensure_ping_at_exit
101
103
  else
102
- at_exit { reset }
104
+ pid = Process.pid
105
+ at_exit { reset if Process.pid == pid}
103
106
  end
104
107
  @socket.setsockopt(ZMQ::LINGER, @config[:linger])
105
108
  @socket.setsockopt(ZMQ::SNDHWM, @config[:snd_hwm])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logjam_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.1
4
+ version: 0.33.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Kaes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-26 00:00:00.000000000 Z
11
+ date: 2022-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -275,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
275
275
  - !ruby/object:Gem::Version
276
276
  version: '0'
277
277
  requirements: []
278
- rubygems_version: 3.3.4
278
+ rubygems_version: 3.3.15
279
279
  signing_key:
280
280
  specification_version: 4
281
281
  summary: Logjam client library to be used with logjam