async-process 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.editorconfig +6 -0
- data/lib/async/process/child.rb +5 -1
- data/lib/async/process/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a421360f70006357500001d0c51640b764bb412f30aa093582279e9d952c7dc
|
4
|
+
data.tar.gz: 79d0814078f172ed27a7499d032fbd07d6c2b792eb0874d07401abc2f25f980b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f8895f382a4279ac4f66fd89ee9ec1e64dc967fd1f41a9df1cb192cd6ecc8cc904fe15a9ee9f1458135dbc949d3da8b7282f44b015f61a4ff8e4ff6598284b4
|
7
|
+
data.tar.gz: b83ec5ea0ad0a3a7351513e586c16ab3fb0692b6450b1dfaa020d65dceee95275f1289f43c247c34d85cd4d9d04a24a793f929d90ba26a4df15c6ca22e6506fd
|
data/.editorconfig
ADDED
data/lib/async/process/child.rb
CHANGED
@@ -45,6 +45,10 @@ module Async
|
|
45
45
|
@exit_status.nil?
|
46
46
|
end
|
47
47
|
|
48
|
+
def kill(signal = :TERM)
|
49
|
+
::Process.kill(signal, -@pid)
|
50
|
+
end
|
51
|
+
|
48
52
|
def wait
|
49
53
|
if @exit_status.nil?
|
50
54
|
wait_thread
|
@@ -61,7 +65,7 @@ module Async
|
|
61
65
|
ensure
|
62
66
|
# If the user stops this task, we kill the process:
|
63
67
|
if @exit_status.nil?
|
64
|
-
::Process.kill(:
|
68
|
+
::Process.kill(:KILL, -@pid)
|
65
69
|
end
|
66
70
|
|
67
71
|
@thread.join
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-process
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|
@@ -101,6 +101,7 @@ executables: []
|
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
+
- ".editorconfig"
|
104
105
|
- ".gitignore"
|
105
106
|
- ".rspec"
|
106
107
|
- ".travis.yml"
|
@@ -129,8 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
130
|
- !ruby/object:Gem::Version
|
130
131
|
version: '0'
|
131
132
|
requirements: []
|
132
|
-
|
133
|
-
rubygems_version: 2.7.7
|
133
|
+
rubygems_version: 3.0.0.beta3
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: Asynchronous process spawning.
|