deadly_serious 0.6.1 → 0.7.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f4399af427387bfce6f48e389b7d640afc5d359
|
4
|
+
data.tar.gz: 98beb9f02a0b48826a702d8a60bbc3e6d45ee418
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b1766a3982a0bbc9a07c0982cc2c5e118c1b50773095a5cb8d75e4d341cc6ca5393b307e8ed10778e3cd88ee9265482bdf816daccf584e6fcfca4e1258ee6e7
|
7
|
+
data.tar.gz: 68a509b17a15c9024c4b91876aeeaeae8ddc3f75ca2211418582a15970958dcbf23c8c1f2f58594c84aaf05ea22978b746171630370be89a666733f5a02e9b05
|
@@ -23,6 +23,10 @@ module DeadlySerious
|
|
23
23
|
Channel.teardown
|
24
24
|
end
|
25
25
|
|
26
|
+
def wait_processes!
|
27
|
+
wait_children
|
28
|
+
end
|
29
|
+
|
26
30
|
def spawn_process(a_class, *args, process_name: a_class.name, readers: [], writers: [])
|
27
31
|
writers.each { |writer| create_pipe(writer) }
|
28
32
|
fork_it do
|
@@ -103,10 +107,11 @@ module DeadlySerious
|
|
103
107
|
|
104
108
|
def wait_children
|
105
109
|
@ids.each { |id| Process.wait(id) }
|
110
|
+
@ids.clear
|
106
111
|
end
|
107
112
|
|
108
113
|
def kill_children
|
109
|
-
@ids.each { |id| Process.kill('SIGTERM', id) }
|
114
|
+
@ids.each { |id| Process.kill('SIGTERM', id) rescue nil }
|
110
115
|
wait_children
|
111
116
|
end
|
112
117
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deadly_serious
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ronie Uliana
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|