stalk-boss 0.1.13 → 0.1.14
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.
- data/VERSION +1 -1
- data/lib/stalk_boss.rb +4 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.14
|
data/lib/stalk_boss.rb
CHANGED
@@ -88,11 +88,13 @@ module StalkBoss
|
|
88
88
|
def send_signal(sig)
|
89
89
|
stalk_jobs.each do |s|
|
90
90
|
s.pids.each do |pid|
|
91
|
-
|
92
|
-
|
91
|
+
begin
|
92
|
+
Process.kill sig, pid
|
93
|
+
Process.detach pid
|
93
94
|
rescue Errno::ESRCH, Errno::ENOENT
|
94
95
|
# do nothing, we don't care if were missing a pid that we're
|
95
96
|
# trying to murder already
|
97
|
+
end
|
96
98
|
end
|
97
99
|
end
|
98
100
|
stalk_jobs = []
|