childprocess 0.6.2 → 0.6.3.beta.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27b88ddea7b98cee2da5e9a017e63192602a0dfd
|
4
|
+
data.tar.gz: 310d52af222e7dbaf9213da99cdef0532b240aee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4eef1684420cabbf08cb8c9b487faaa001bee1fa5b32712331727463ac58f52ef73a0fdc859c1806d7d758860cd5432fbfe26e8c725036634250a6bb64c0782e
|
7
|
+
data.tar.gz: 87889e74ce63978d05f2f9f46465124e22b4fb6cceed5c93dcbdf376aca2a5b9435880e78831f58ad72eb0022166963f94e814f0108167f016dee9e845f2824b
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
### Version 0.6.3.beta.1 / 2017-03-10
|
2
|
+
|
3
|
+
* Bug fix: Fixed child process creation problems on Windows 7 when a child was declared as a leader.
|
4
|
+
|
5
|
+
|
1
6
|
### Version 0.6.2 / 2017-02-25
|
2
7
|
|
3
8
|
* Bug fix: Fixed a potentially broken edge case that could occur on older 32-bit OSX systems.
|
data/lib/childprocess/version.rb
CHANGED
@@ -56,6 +56,7 @@ module ChildProcess
|
|
56
56
|
|
57
57
|
def launch_process
|
58
58
|
builder = ProcessBuilder.new(@args)
|
59
|
+
builder.leader = leader?
|
59
60
|
builder.detach = detach?
|
60
61
|
builder.duplex = duplex?
|
61
62
|
builder.environment = @environment unless @environment.empty?
|
@@ -100,7 +101,7 @@ module ChildProcess
|
|
100
101
|
end
|
101
102
|
|
102
103
|
basic = JobObjectBasicLimitInformation.new
|
103
|
-
basic[:LimitFlags] = JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE
|
104
|
+
basic[:LimitFlags] = JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE | JOB_OBJECT_LIMIT_BREAKAWAY_OK
|
104
105
|
|
105
106
|
extended = JobObjectExtendedLimitInformation.new
|
106
107
|
extended[:BasicLimitInformation] = basic
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module ChildProcess
|
2
2
|
module Windows
|
3
3
|
class ProcessBuilder
|
4
|
-
attr_accessor :detach, :duplex, :environment, :stdout, :stderr, :cwd
|
4
|
+
attr_accessor :leader, :detach, :duplex, :environment, :stdout, :stderr, :cwd
|
5
5
|
attr_reader :stdin
|
6
6
|
|
7
7
|
def initialize(args)
|
@@ -99,6 +99,7 @@ module ChildProcess
|
|
99
99
|
|
100
100
|
def setup_flags
|
101
101
|
@flags |= DETACHED_PROCESS if @detach
|
102
|
+
@flags |= CREATE_BREAKAWAY_FROM_JOB if @leader
|
102
103
|
end
|
103
104
|
|
104
105
|
def setup_io
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: childprocess
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jari Bakken
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-03-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
@@ -157,9 +157,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
159
|
requirements:
|
160
|
-
- - "
|
160
|
+
- - ">"
|
161
161
|
- !ruby/object:Gem::Version
|
162
|
-
version:
|
162
|
+
version: 1.3.1
|
163
163
|
requirements: []
|
164
164
|
rubyforge_project: childprocess
|
165
165
|
rubygems_version: 2.5.2
|