acpc_dealer 3.0.1 → 3.0.2

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
  SHA1:
3
- metadata.gz: 9ac04925700f061e823756f7d35ed500b1bb4acb
4
- data.tar.gz: d808d85a3d6e5ccef48e1309727e4377fe74d3c8
3
+ metadata.gz: 6df72da45ec00ef10ab9807e6d541ea45321b3ab
4
+ data.tar.gz: e3b27ea957b98c51bfc241dbe9eed5d742d54e9b
5
5
  SHA512:
6
- metadata.gz: bf61634bcd39987182652f1ce83b9e8d3d1d5cf5f88e80bf8d461f1145de81c4f3b707471f3e854c751c4fe5caed807755f68b61524e95676e44e7b2da723802
7
- data.tar.gz: 349d9d12eda48c85b200c70f021744f7930cfddfc263252ee85026fa77d540ac3ff6c58e9ca446fc3c5343d0074e95036c06401e24044f0aece231db03307d28
6
+ metadata.gz: e43ae1f310627ed50a5e819f8b9b600f42c03244bd3e189da66cfb89745893503011a0f70164f268a3154672a02c2e047edb8f96c21ab7fedcd01f4bcbed9470
7
+ data.tar.gz: 3f8c5fdda3a0c5dddb455ecc96d707710cb7d2f2302e9e6dc8b1cd046543cfbec17f182caebe42be78aefc9667306bf5caedb66b5d823ef645d83213732a7b11
data/lib/acpc_dealer.rb CHANGED
@@ -62,8 +62,17 @@ module AcpcDealer
62
62
  false
63
63
  end
64
64
  end
65
- def self.kill_process(pid) Process.kill('TERM', pid) end
66
- def self.force_kill_process(pid) Process.kill('KILL', pid) end
65
+ def self.kill_process(pid)
66
+ if pid && pid > 0
67
+ Process.kill('TERM', pid)
68
+ end
69
+ end
70
+
71
+ def self.force_kill_process(pid)
72
+ if pid && pid > 0
73
+ Process.kill('KILL', pid)
74
+ end
75
+ end
67
76
 
68
77
  def self.dealer_running?(dealer_process_hash)
69
78
  (
@@ -1,3 +1,3 @@
1
1
  module AcpcDealer
2
- VERSION = "3.0.1"
2
+ VERSION = "3.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acpc_dealer
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Morrill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-08 00:00:00.000000000 Z
11
+ date: 2017-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: clive