slugrunner 0.0.3 → 0.0.4

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.
@@ -63,7 +63,7 @@ module Slugrunner
63
63
 
64
64
  start_ping if @ping
65
65
 
66
- Process.wait
66
+ Process.waitpid(@child, 0)
67
67
 
68
68
  @alive = false
69
69
  notify(:stop) if @ping
@@ -109,8 +109,8 @@ module Slugrunner
109
109
 
110
110
  def kill_child
111
111
  if @child
112
- logger("Killing process #{@child} with SIGTERM.")
113
- Process.kill('TERM', @child)
112
+ logger("Killing process #{@child} with SIGKILL.")
113
+ Process.kill('KILL', @child)
114
114
  end
115
115
  end
116
116
 
@@ -170,7 +170,7 @@ module Slugrunner
170
170
 
171
171
  def prepare_env(cmd)
172
172
  blob = <<-eos
173
- env - bash -c '
173
+ exec env - bash -c '
174
174
  cd #{@slug_dir}
175
175
  export HOME=#{@slug_dir}
176
176
  export APP_DIR=#{@slug_dir}
@@ -1,3 +1,3 @@
1
1
  module Slugrunner
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slugrunner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-15 00:00:00.000000000 Z
12
+ date: 2014-03-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler