ajp-rails 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS.en +3 -0
- data/NEWS.ja +3 -0
- data/ajp-rails.gemspec +1 -1
- data/lib/ajp-rails/rails-runner.rb +10 -3
- metadata +2 -2
data/NEWS.en
CHANGED
data/NEWS.ja
CHANGED
data/ajp-rails.gemspec
CHANGED
@@ -156,8 +156,15 @@ if is_daemon = options[OPTION_NAMES_TO_INTERNAL_NAMES['daemon']]
|
|
156
156
|
options.delete(OPTION_NAMES_TO_INTERNAL_NAMES['daemon'])
|
157
157
|
|
158
158
|
exit if Process.fork
|
159
|
-
Process.setsid
|
159
|
+
raise 'Cannot detach from the terminal' unless Process.setsid
|
160
160
|
exit if Process.fork
|
161
|
+
ObjectSpace.each_object(IO) do |io|
|
162
|
+
begin
|
163
|
+
io.close unless [STDIN, STDOUT, STDERR].include?(io)
|
164
|
+
rescue IOError
|
165
|
+
# do nothing
|
166
|
+
end
|
167
|
+
end
|
161
168
|
File.umask(0)
|
162
169
|
end
|
163
170
|
|
@@ -168,10 +175,10 @@ Dir.chdir options[OPTION_NAMES_TO_INTERNAL_NAMES['directory']]
|
|
168
175
|
require 'config/environment'
|
169
176
|
|
170
177
|
if is_daemon
|
171
|
-
Dir.chdir('/')
|
178
|
+
#Dir.chdir('/')
|
172
179
|
STDIN.reopen('/dev/null')
|
173
180
|
STDOUT.reopen('/dev/null', 'w')
|
174
|
-
STDERR.reopen(
|
181
|
+
STDERR.reopen(STDOUT)
|
175
182
|
end
|
176
183
|
|
177
184
|
runner = RailsRunner.new(options)
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: ajp-rails
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2006-01-
|
6
|
+
version: 0.0.4
|
7
|
+
date: 2006-01-27 00:00:00 +09:00
|
8
8
|
summary: Ruby on Rails Runner, which uses AJP(Apache JServ Protocol) to cooperate with a HTTPd, instead of CGI or FastCGI
|
9
9
|
require_paths:
|
10
10
|
- lib
|