kubernetes_template_rendering 0.2.1.pre.dc.2 → 0.2.1.pre.dc.4

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: 7d10c0db50f38bd2325e0c15b2a2e4c9ef0602d11e7d0be2f42fe2867604d662
4
- data.tar.gz: d9a69a3e8c3d324361157e123abb18046754ceb74472aa9913c407593bc99742
3
+ metadata.gz: 5661c5542fae565c240f74d80c13ad46f4d2ced02a3b84b8e146b62c72f455d2
4
+ data.tar.gz: b59521b0d0dc2be25718961698dc9d43020dd4cc8ff75c5fa6a909ce2f3ed575
5
5
  SHA512:
6
- metadata.gz: c0e6a14c654794100c4cd69c9222f780b186e88b751fe0caf143534319fede07222213c69c3f2a614e76bec4a9589cd6b646eeed2bceade5009f2adbda7bf874
7
- data.tar.gz: a0442ab4b3be3a24d50c3af24750d74130ea00da21be63f9e3f9edaee645040fb0db2af97073f40fa502effc5d7d4153aba43bd7fea2a1e927803cadb01eba07
6
+ metadata.gz: 224db8733389c73a84d7b9e280658d3e140df13af4fecf73a9ebb035363007f279ed1677133c03319eb6f7e74a1fae938a3dd5ae3e073ae5194afb6d699a6274
7
+ data.tar.gz: 036dc5ee957ae5ff07aafbbc0f4f694d65f8b55e0c1ab37b7cb07d98df6edc1f851bd048589233caec3edecbcbd23dd5e98a971e59de6503fa5b5458eb265050
@@ -40,7 +40,7 @@ module KubernetesTemplateRendering
40
40
  else
41
41
  # this is the child
42
42
  render_set(args, resource_set)
43
- Kernel.exit!(3) # skip at_exit handlers since parent will run those
43
+ Kernel.exit!(0) # skip at_exit handlers since parent will run those
44
44
  end
45
45
  else
46
46
  render_set(args, resource_set)
@@ -72,9 +72,12 @@ module KubernetesTemplateRendering
72
72
  rescue SystemCallError # this will happen if they all exited before we called waitpid
73
73
  end
74
74
  child_pids.delete_if do |pid|
75
- Process.waitpid(pid, Process::WNOHANG)
76
- rescue Errno::ECHILD # No child processes
77
- true
75
+ begin
76
+ [_, exit_status] = Process.waitpid2(pid, Process::WNOHANG)
77
+ exit_status.success? or raise "Child process #{pid} failed"
78
+ rescue Errno::ECHILD # No child processes
79
+ true
80
+ end
78
81
  end
79
82
  end
80
83
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KubernetesTemplateRendering
4
- VERSION = "0.2.1.pre.dc.2"
4
+ VERSION = "0.2.1.pre.dc.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubernetes_template_rendering
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1.pre.dc.2
4
+ version: 0.2.1.pre.dc.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Octothorpe