bluepill 0.0.43 → 0.0.44

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.43
1
+ 0.0.44
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bluepill}
8
- s.version = "0.0.43"
8
+ s.version = "0.0.44"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Arya Asemanfar", "Gary Tsang", "Rohith Ravi"]
12
- s.date = %q{2010-09-18}
12
+ s.date = %q{2010-10-18}
13
13
  s.default_executable = %q{bluepill}
14
14
  s.description = %q{Bluepill keeps your daemons up while taking up as little resources as possible. After all you probably want the resources of your server to be used by whatever daemons you are running rather than the thing that's supposed to make sure they are brought back up, should they die or misbehave.}
15
15
  s.email = %q{entombedvirus@gmail.com}
@@ -53,6 +53,7 @@ module Bluepill
53
53
  Kernel.exec(tail)
54
54
  else
55
55
  $stderr.puts "Unknown command `%s` (or application `%s` has not been loaded yet)" % [command, command]
56
+ exit(1)
56
57
  end
57
58
  end
58
59
 
@@ -116,4 +117,4 @@ module Bluepill
116
117
  end
117
118
  end
118
119
  end
119
- end
120
+ end
@@ -378,11 +378,17 @@ module Bluepill
378
378
  @children << child
379
379
  end
380
380
  end
381
-
381
+
382
382
  def deep_copy
383
- Marshal.load(Marshal.dump(self))
383
+ # TODO: This is a kludge. Ideally, process templates
384
+ # would be facotries, and not a template object.
385
+ mutex, @event_mutex = @event_mutex, nil
386
+ clone = Marshal.load(Marshal.dump(self))
387
+ clone.instance_variable_set("@event_mutex", Monitor.new)
388
+ @event_mutex = mutex
389
+ clone
384
390
  end
385
-
391
+
386
392
  def prepare_command(command)
387
393
  command.to_s.gsub("{{PID}}", actual_pid.to_s)
388
394
  end
@@ -1,3 +1,3 @@
1
1
  module Bluepill
2
- VERSION = "0.0.43"
2
+ VERSION = "0.0.44"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bluepill
3
3
  version: !ruby/object:Gem::Version
4
- hash: 73
4
+ hash: 71
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 43
10
- version: 0.0.43
9
+ - 44
10
+ version: 0.0.44
11
11
  platform: ruby
12
12
  authors:
13
13
  - Arya Asemanfar
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-09-18 00:00:00 -07:00
20
+ date: 2010-10-18 00:00:00 -07:00
21
21
  default_executable: bluepill
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency