dont-stall-my-process 0.1.1 → 0.1.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/lib/dont-stall-my-process/version.rb +1 -1
- data/lib/dont-stall-my-process.rb +3 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 562d9b6a49097a22566602128f5a531c53e26330
|
4
|
+
data.tar.gz: 689944a6f09ea614d5180ccf54e0369201f75398
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9addba72c01ea9f16e49ebdc80ae723881472c2e528e81367e609275974811c12c8cfdd885570b2a4d5b1b06a5ea175a2d336dfd8d61a6a4051f8d89520a201d
|
7
|
+
data.tar.gz: 72d8f63b14088d706a116eb38088daf5dac20a4ba0ce85eb9cca1edfad2ce5c1740104d1bd06fc212d83324bf9fc9a7d90707cdbd0b01682dcf4c9203e3fe8be
|
@@ -21,12 +21,6 @@ module DontStallMyProcess
|
|
21
21
|
# Set default values and validate configuration.
|
22
22
|
opts = sanitize_options(opts)
|
23
23
|
|
24
|
-
# Start a local DRbServer (unnamed?) for callbacks (blocks!).
|
25
|
-
# Each new DontStallMyProcess object will overwrite the main master DRbServer.
|
26
|
-
# This looks weird, but doesn't affect concurrent uses of multiple
|
27
|
-
# Watchdogs, I tested it. Trust me.
|
28
|
-
DRb.start_service
|
29
|
-
|
30
24
|
# Fork the child process.
|
31
25
|
process = Local::ChildProcessPool.alloc
|
32
26
|
|
@@ -62,4 +56,7 @@ module DontStallMyProcess
|
|
62
56
|
]
|
63
57
|
}
|
64
58
|
end
|
59
|
+
|
60
|
+
# Start a local DRbServer (unnamed?) for callbacks (blocks!).
|
61
|
+
DRb.start_service
|
65
62
|
end
|