oni 4.2.2 → 4.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oni/daemon.rb +5 -2
- data/lib/oni/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 430375f85e0f8d617f53487863c6a4752680fd1d8b5a67cc78529d757e5b5389
|
4
|
+
data.tar.gz: c26f8f5b3457c28145c3e689b6490026dd073b9ea4a5acea06ab9f198d405397
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38ef45f00263093e39de7f38051ad170c48f9578907230d2c1ddd98542bc9c1bc012322e17317e9ceac32ea5d07be8e7ffbabc3f6a62cb9d5f995f6f1ca8449e
|
7
|
+
data.tar.gz: 6799c07046351f56671e1863677e626021dc724196b94404b42f6dc7e8df64c3784ff77a864f7af7b2f2951ed7432e8dedee1a60a9a7fd4c9308ec14c728a7eb
|
data/lib/oni/daemon.rb
CHANGED
@@ -59,13 +59,16 @@ module Oni
|
|
59
59
|
return run_thread if threads <= 1
|
60
60
|
return spawn_worker if workers <= 1
|
61
61
|
|
62
|
-
Array.new workers do |i|
|
62
|
+
threads = Array.new workers do |i|
|
63
63
|
Thread.new do
|
64
64
|
Process.wait fork{ spawn_worker i+1 } while true
|
65
65
|
end
|
66
|
-
end
|
66
|
+
end
|
67
67
|
|
68
|
+
sleep 3
|
68
69
|
after_start if respond_to? :after_start
|
70
|
+
|
71
|
+
threads.each(&:join)
|
69
72
|
rescue => error
|
70
73
|
error(error)
|
71
74
|
end
|
data/lib/oni/version.rb
CHANGED