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: 573e0b0d60408f86b192aff074302d8eb93b23c7
4
- data.tar.gz: 82f862132d5965c1ce89a5149c50117659434115
3
+ metadata.gz: 27b88ddea7b98cee2da5e9a017e63192602a0dfd
4
+ data.tar.gz: 310d52af222e7dbaf9213da99cdef0532b240aee
5
5
  SHA512:
6
- metadata.gz: cf46ed57aa6bc03bbeccdd4174b467086acab0652158495ab3fdecbe986c95dd5a79826ac223d3cb6af1e5de8987fa72ed6fb1087ddc431a62d2108924601e06
7
- data.tar.gz: c3f394a000ef43ee311d93ea4406dd9a327beb7526e94214cb00777c43875a6042e69f8cdc19ec3fef28fe4e11271f56e8a72ff626ccfb407028a0254ffac67c
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.
@@ -1,3 +1,3 @@
1
1
  module ChildProcess
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.3.beta.1'
3
3
  end
@@ -28,6 +28,7 @@ module ChildProcess
28
28
  CREATE_UNICODE_ENVIRONMENT = 0x00000400
29
29
 
30
30
  JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE = 0x2000
31
+ JOB_OBJECT_LIMIT_BREAKAWAY_OK = 0x00000800
31
32
  JOB_OBJECT_EXTENDED_LIMIT_INFORMATION = 9
32
33
  JOB_OBJECT_BASIC_LIMIT_INFORMATION = 2
33
34
 
@@ -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.2
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-02-25 00:00:00.000000000 Z
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: '0'
162
+ version: 1.3.1
163
163
  requirements: []
164
164
  rubyforge_project: childprocess
165
165
  rubygems_version: 2.5.2