passenger 2.2.7 → 2.2.8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of passenger might be problematic. Click here for more details.

Files changed (160) hide show
  1. data/NEWS +40 -0
  2. data/Rakefile +1 -1
  3. data/bin/passenger-install-apache2-module +1 -0
  4. data/bin/passenger-install-nginx-module +2 -0
  5. data/doc/Architectural overview.html +173 -138
  6. data/doc/Security of user switching support.html +147 -109
  7. data/doc/Users guide Apache.html +4 -43
  8. data/doc/Users guide Nginx.html +4 -43
  9. data/doc/cxxapi/Bucket_8h-source.html +1 -1
  10. data/doc/cxxapi/Configuration_8h-source.html +1 -1
  11. data/doc/cxxapi/DirectoryMapper_8h-source.html +1 -1
  12. data/doc/cxxapi/Hooks_8h-source.html +1 -1
  13. data/doc/cxxapi/annotated.html +1 -1
  14. data/doc/cxxapi/classHooks-members.html +1 -1
  15. data/doc/cxxapi/classHooks.html +1 -1
  16. data/doc/cxxapi/classPassenger_1_1DirectoryMapper-members.html +1 -1
  17. data/doc/cxxapi/classPassenger_1_1DirectoryMapper.html +1 -1
  18. data/doc/cxxapi/classes.html +1 -1
  19. data/doc/cxxapi/definitions_8h-source.html +1 -1
  20. data/doc/cxxapi/files.html +1 -1
  21. data/doc/cxxapi/functions.html +1 -1
  22. data/doc/cxxapi/functions_func.html +1 -1
  23. data/doc/cxxapi/graph_legend.html +1 -1
  24. data/doc/cxxapi/group__Configuration.html +1 -1
  25. data/doc/cxxapi/group__Core.html +1 -1
  26. data/doc/cxxapi/group__Hooks.html +1 -1
  27. data/doc/cxxapi/group__Support.html +1 -1
  28. data/doc/cxxapi/main.html +1 -1
  29. data/doc/cxxapi/modules.html +1 -1
  30. data/doc/rdoc/classes/GC.html +4 -4
  31. data/doc/rdoc/classes/PhusionPassenger.html +2 -1
  32. data/doc/rdoc/classes/PhusionPassenger/AbstractInstaller.html +8 -8
  33. data/doc/rdoc/classes/PhusionPassenger/AbstractRequestHandler.html +26 -26
  34. data/doc/rdoc/classes/PhusionPassenger/AbstractServer.html +98 -98
  35. data/doc/rdoc/classes/PhusionPassenger/AbstractServerCollection.html +61 -61
  36. data/doc/rdoc/classes/PhusionPassenger/AppInitError.html +4 -4
  37. data/doc/rdoc/classes/PhusionPassenger/Application.html +14 -14
  38. data/doc/rdoc/classes/PhusionPassenger/ConsoleTextTemplate.html +12 -12
  39. data/doc/rdoc/classes/PhusionPassenger/FrameworkInitError.html +4 -4
  40. data/doc/rdoc/classes/PhusionPassenger/HTMLTemplate.html +12 -12
  41. data/doc/rdoc/classes/PhusionPassenger/InitializationError.html +5 -5
  42. data/doc/rdoc/classes/PhusionPassenger/MessageChannel.html +42 -42
  43. data/doc/rdoc/classes/PhusionPassenger/Rack/ApplicationSpawner.html +33 -33
  44. data/doc/rdoc/classes/PhusionPassenger/Rack/RequestHandler.html +59 -59
  45. data/doc/rdoc/classes/PhusionPassenger/Railz/ApplicationSpawner.html +3 -3
  46. data/doc/rdoc/classes/PhusionPassenger/Railz/FrameworkSpawner.html +7 -7
  47. data/doc/rdoc/classes/PhusionPassenger/SpawnManager.html +23 -23
  48. data/doc/rdoc/classes/PhusionPassenger/UnknownError.html +4 -4
  49. data/doc/rdoc/classes/PhusionPassenger/Utils.html +2 -0
  50. data/doc/rdoc/classes/PhusionPassenger/Utils/PseudoIO.html +16 -16
  51. data/doc/rdoc/classes/PhusionPassenger/VersionNotFound.html +4 -4
  52. data/doc/rdoc/classes/PlatformInfo.html +1 -1
  53. data/doc/rdoc/classes/Signal.html +23 -15
  54. data/doc/rdoc/created.rid +1 -1
  55. data/doc/rdoc/files/DEVELOPERS_TXT.html +1 -1
  56. data/doc/rdoc/files/README.html +1 -1
  57. data/doc/rdoc/files/ext/phusion_passenger/native_support_c.html +1 -1
  58. data/doc/rdoc/files/lib/phusion_passenger/abstract_installer_rb.html +1 -1
  59. data/doc/rdoc/files/lib/phusion_passenger/abstract_request_handler_rb.html +1 -1
  60. data/doc/rdoc/files/lib/phusion_passenger/abstract_server_collection_rb.html +1 -1
  61. data/doc/rdoc/files/lib/phusion_passenger/abstract_server_rb.html +1 -1
  62. data/doc/rdoc/files/lib/phusion_passenger/admin_tools/control_process_rb.html +1 -1
  63. data/doc/rdoc/files/lib/phusion_passenger/admin_tools_rb.html +1 -1
  64. data/doc/rdoc/files/lib/phusion_passenger/application_rb.html +1 -1
  65. data/doc/rdoc/files/lib/phusion_passenger/console_text_template_rb.html +1 -1
  66. data/doc/rdoc/files/lib/phusion_passenger/constants_rb.html +1 -1
  67. data/doc/rdoc/files/lib/phusion_passenger/dependencies_rb.html +1 -1
  68. data/doc/rdoc/files/lib/phusion_passenger/events_rb.html +1 -1
  69. data/doc/rdoc/files/lib/phusion_passenger/exceptions_rb.html +1 -1
  70. data/doc/rdoc/files/lib/phusion_passenger/html_template_rb.html +1 -1
  71. data/doc/rdoc/files/lib/phusion_passenger/message_channel_rb.html +1 -1
  72. data/doc/rdoc/files/lib/phusion_passenger/packaging_rb.html +1 -1
  73. data/doc/rdoc/files/lib/phusion_passenger/platform_info_rb.html +1 -1
  74. data/doc/rdoc/files/lib/phusion_passenger/rack/application_spawner_rb.html +2 -2
  75. data/doc/rdoc/files/lib/phusion_passenger/rack/request_handler_rb.html +2 -2
  76. data/doc/rdoc/files/lib/phusion_passenger/railz/application_spawner_rb.html +1 -1
  77. data/doc/rdoc/files/lib/phusion_passenger/railz/cgi_fixed_rb.html +1 -1
  78. data/doc/rdoc/files/lib/phusion_passenger/railz/framework_spawner_rb.html +1 -1
  79. data/doc/rdoc/files/lib/phusion_passenger/railz/request_handler_rb.html +1 -1
  80. data/doc/rdoc/files/lib/phusion_passenger/simple_benchmarking_rb.html +1 -1
  81. data/doc/rdoc/files/lib/phusion_passenger/spawn_manager_rb.html +1 -1
  82. data/doc/rdoc/files/lib/phusion_passenger/utils_rb.html +9 -9
  83. data/doc/rdoc/files/lib/phusion_passenger/wsgi/application_spawner_rb.html +1 -1
  84. data/doc/rdoc/files/misc/rake/extensions_rb.html +1 -1
  85. data/doc/rdoc/fr_class_index.html +2 -0
  86. data/doc/rdoc/fr_file_index.html +1 -0
  87. data/doc/rdoc/fr_method_index.html +79 -72
  88. data/ext/apache2/Hooks.cpp +4 -2
  89. data/ext/common/StandardApplicationPool.h +4 -2
  90. data/ext/common/Version.h +1 -1
  91. data/ext/nginx/Configuration.c +1 -1
  92. data/ext/oxt/system_calls.cpp +11 -0
  93. data/ext/oxt/system_calls.hpp +2 -1
  94. data/ext/oxt/thread.hpp +97 -1
  95. data/lib/phusion_passenger/constants.rb +1 -1
  96. data/lib/phusion_passenger/dependencies.rb +32 -0
  97. data/lib/phusion_passenger/platform_info.rb +1 -1
  98. data/lib/phusion_passenger/rack/application_spawner.rb +4 -4
  99. data/lib/phusion_passenger/rack/request_handler.rb +2 -5
  100. data/lib/phusion_passenger/railz/application_spawner.rb +13 -2
  101. data/lib/phusion_passenger/utils.rb +12 -4
  102. data/{vendor/rack-1.0.0-git/lib/rack → lib/phusion_passenger/utils}/rewindable_input.rb +19 -3
  103. data/test/ApplicationPoolTest.cpp +1 -1
  104. metadata +13 -59
  105. data/vendor/README +0 -13
  106. data/vendor/README_FOR_PACKAGERS +0 -1
  107. data/vendor/rack-1.0.0-git/COPYING +0 -18
  108. data/vendor/rack-1.0.0-git/KNOWN-ISSUES +0 -18
  109. data/vendor/rack-1.0.0-git/README +0 -353
  110. data/vendor/rack-1.0.0-git/Rakefile +0 -164
  111. data/vendor/rack-1.0.0-git/lib/rack.rb +0 -90
  112. data/vendor/rack-1.0.0-git/lib/rack/adapter/camping.rb +0 -22
  113. data/vendor/rack-1.0.0-git/lib/rack/auth/abstract/handler.rb +0 -37
  114. data/vendor/rack-1.0.0-git/lib/rack/auth/abstract/request.rb +0 -37
  115. data/vendor/rack-1.0.0-git/lib/rack/auth/basic.rb +0 -58
  116. data/vendor/rack-1.0.0-git/lib/rack/auth/digest/md5.rb +0 -124
  117. data/vendor/rack-1.0.0-git/lib/rack/auth/digest/nonce.rb +0 -51
  118. data/vendor/rack-1.0.0-git/lib/rack/auth/digest/params.rb +0 -55
  119. data/vendor/rack-1.0.0-git/lib/rack/auth/digest/request.rb +0 -40
  120. data/vendor/rack-1.0.0-git/lib/rack/auth/openid.rb +0 -487
  121. data/vendor/rack-1.0.0-git/lib/rack/builder.rb +0 -63
  122. data/vendor/rack-1.0.0-git/lib/rack/cascade.rb +0 -41
  123. data/vendor/rack-1.0.0-git/lib/rack/chunked.rb +0 -49
  124. data/vendor/rack-1.0.0-git/lib/rack/commonlogger.rb +0 -52
  125. data/vendor/rack-1.0.0-git/lib/rack/conditionalget.rb +0 -47
  126. data/vendor/rack-1.0.0-git/lib/rack/content_length.rb +0 -29
  127. data/vendor/rack-1.0.0-git/lib/rack/content_type.rb +0 -23
  128. data/vendor/rack-1.0.0-git/lib/rack/deflater.rb +0 -96
  129. data/vendor/rack-1.0.0-git/lib/rack/directory.rb +0 -153
  130. data/vendor/rack-1.0.0-git/lib/rack/file.rb +0 -88
  131. data/vendor/rack-1.0.0-git/lib/rack/handler.rb +0 -69
  132. data/vendor/rack-1.0.0-git/lib/rack/handler/cgi.rb +0 -61
  133. data/vendor/rack-1.0.0-git/lib/rack/handler/evented_mongrel.rb +0 -8
  134. data/vendor/rack-1.0.0-git/lib/rack/handler/fastcgi.rb +0 -88
  135. data/vendor/rack-1.0.0-git/lib/rack/handler/lsws.rb +0 -55
  136. data/vendor/rack-1.0.0-git/lib/rack/handler/mongrel.rb +0 -84
  137. data/vendor/rack-1.0.0-git/lib/rack/handler/scgi.rb +0 -59
  138. data/vendor/rack-1.0.0-git/lib/rack/handler/swiftiplied_mongrel.rb +0 -8
  139. data/vendor/rack-1.0.0-git/lib/rack/handler/thin.rb +0 -18
  140. data/vendor/rack-1.0.0-git/lib/rack/handler/webrick.rb +0 -67
  141. data/vendor/rack-1.0.0-git/lib/rack/head.rb +0 -19
  142. data/vendor/rack-1.0.0-git/lib/rack/lint.rb +0 -537
  143. data/vendor/rack-1.0.0-git/lib/rack/lobster.rb +0 -65
  144. data/vendor/rack-1.0.0-git/lib/rack/lock.rb +0 -16
  145. data/vendor/rack-1.0.0-git/lib/rack/methodoverride.rb +0 -27
  146. data/vendor/rack-1.0.0-git/lib/rack/mime.rb +0 -204
  147. data/vendor/rack-1.0.0-git/lib/rack/mock.rb +0 -184
  148. data/vendor/rack-1.0.0-git/lib/rack/recursive.rb +0 -57
  149. data/vendor/rack-1.0.0-git/lib/rack/reloader.rb +0 -106
  150. data/vendor/rack-1.0.0-git/lib/rack/request.rb +0 -248
  151. data/vendor/rack-1.0.0-git/lib/rack/response.rb +0 -183
  152. data/vendor/rack-1.0.0-git/lib/rack/session/abstract/id.rb +0 -142
  153. data/vendor/rack-1.0.0-git/lib/rack/session/cookie.rb +0 -91
  154. data/vendor/rack-1.0.0-git/lib/rack/session/memcache.rb +0 -109
  155. data/vendor/rack-1.0.0-git/lib/rack/session/pool.rb +0 -100
  156. data/vendor/rack-1.0.0-git/lib/rack/showexceptions.rb +0 -349
  157. data/vendor/rack-1.0.0-git/lib/rack/showstatus.rb +0 -106
  158. data/vendor/rack-1.0.0-git/lib/rack/static.rb +0 -38
  159. data/vendor/rack-1.0.0-git/lib/rack/urlmap.rb +0 -55
  160. data/vendor/rack-1.0.0-git/lib/rack/utils.rb +0 -522
@@ -90,9 +90,9 @@ multiple different Ruby on Rails applications.
90
90
  <p>
91
91
  <b>Note</b>: <a href="ApplicationSpawner.html">ApplicationSpawner</a> may
92
92
  only be started asynchronously with <a
93
- href="../AbstractServer.html#M000120">AbstractServer#start</a>. Starting it
93
+ href="../AbstractServer.html#M000127">AbstractServer#start</a>. Starting it
94
94
  synchronously with <a
95
- href="../AbstractServer.html#M000121">AbstractServer#start_synchronously</a>
95
+ href="../AbstractServer.html#M000128">AbstractServer#start_synchronously</a>
96
96
  has not been tested.
97
97
  </p>
98
98
  </div>
@@ -392,7 +392,7 @@ application raised an exception or called exit() during startup.
392
392
  <div class="description">
393
393
  <p>
394
394
  Overrided from <a
395
- href="../AbstractServer.html#M000120">AbstractServer#start</a>.
395
+ href="../AbstractServer.html#M000127">AbstractServer#start</a>.
396
396
  </p>
397
397
  <p>
398
398
  May raise these additional exceptions:
@@ -95,9 +95,9 @@ href="ApplicationSpawner.html">ApplicationSpawner</a> internally.
95
95
  <p>
96
96
  <b>Note</b>: <a href="FrameworkSpawner.html">FrameworkSpawner</a> may only
97
97
  be started asynchronously with <a
98
- href="../AbstractServer.html#M000120">AbstractServer#start</a>. Starting it
98
+ href="../AbstractServer.html#M000127">AbstractServer#start</a>. Starting it
99
99
  synchronously with <a
100
- href="../AbstractServer.html#M000121">AbstractServer#start_synchronously</a>
100
+ href="../AbstractServer.html#M000128">AbstractServer#start_synchronously</a>
101
101
  has not been tested.
102
102
  </p>
103
103
  </div>
@@ -165,8 +165,8 @@ Note that the specified Rails framework will be loaded during the entire
165
165
  life time of the <a href="FrameworkSpawner.html">FrameworkSpawner</a>
166
166
  server. If you wish to <a href="FrameworkSpawner.html#M000063">reload</a>
167
167
  the Rails framework&#8216;s code, then restart the server by calling <a
168
- href="../AbstractServer.html#M000122">AbstractServer#stop</a> and <a
169
- href="../AbstractServer.html#M000120">AbstractServer#start</a>.
168
+ href="../AbstractServer.html#M000129">AbstractServer#stop</a> and <a
169
+ href="../AbstractServer.html#M000127">AbstractServer#start</a>.
170
170
  </p>
171
171
  </div>
172
172
  <div class="sourcecode">
@@ -279,8 +279,8 @@ you must do one of these things:
279
279
  </p>
280
280
  <ul>
281
281
  <li>Restart this <a href="FrameworkSpawner.html">FrameworkSpawner</a> by
282
- calling <a href="../AbstractServer.html#M000122">AbstractServer#stop</a>,
283
- then <a href="../AbstractServer.html#M000120">AbstractServer#start</a>.
282
+ calling <a href="../AbstractServer.html#M000129">AbstractServer#stop</a>,
283
+ then <a href="../AbstractServer.html#M000127">AbstractServer#start</a>.
284
284
 
285
285
  </li>
286
286
  <li>Reload the application by calling <a
@@ -372,7 +372,7 @@ unexpectedly.
372
372
  <div class="description">
373
373
  <p>
374
374
  Overrided from <a
375
- href="../AbstractServer.html#M000120">AbstractServer#start</a>.
375
+ href="../AbstractServer.html#M000127">AbstractServer#start</a>.
376
376
  </p>
377
377
  <p>
378
378
  May raise these additional exceptions:
@@ -85,9 +85,9 @@ fascade for the rest of the spawn manager system.
85
85
  <p>
86
86
  <b>Note</b>: <a href="SpawnManager.html">SpawnManager</a> may only be
87
87
  started synchronously with <a
88
- href="AbstractServer.html#M000121">AbstractServer#start_synchronously</a>.
88
+ href="AbstractServer.html#M000128">AbstractServer#start_synchronously</a>.
89
89
  Starting asynchronously has not been tested. Don&#8216;t forget to call <a
90
- href="SpawnManager.html#M000153">cleanup</a> after the server&#8216;s main
90
+ href="SpawnManager.html#M000160">cleanup</a> after the server&#8216;s main
91
91
  loop has finished.
92
92
  </p>
93
93
  <h2>Ruby on Rails optimizations</h2>
@@ -116,10 +116,10 @@ work around an obscure bug in ActiveSupport&#8216;s Dispatcher.
116
116
 
117
117
  <div class="sectiontitle">Methods</div>
118
118
  <ul>
119
- <li><a href="#M000153">cleanup</a></li>
120
- <li><a href="#M000150">new</a></li>
121
- <li><a href="#M000152">reload</a></li>
122
- <li><a href="#M000151">spawn_application</a></li>
119
+ <li><a href="#M000160">cleanup</a></li>
120
+ <li><a href="#M000157">new</a></li>
121
+ <li><a href="#M000159">reload</a></li>
122
+ <li><a href="#M000158">spawn_application</a></li>
123
123
  </ul>
124
124
 
125
125
  <div class="sectiontitle">Included Modules</div>
@@ -134,11 +134,11 @@ work around an obscure bug in ActiveSupport&#8216;s Dispatcher.
134
134
  <div class="sectiontitle">Public Class methods</div>
135
135
  <div class="method">
136
136
  <div class="title">
137
- <a name="M000150"></a><b>new</b>()
137
+ <a name="M000157"></a><b>new</b>()
138
138
  </div>
139
139
  <div class="sourcecode">
140
- <p class="source-link">[ <a href="javascript:toggleSource('M000150_source')" id="l_M000150_source">show source</a> ]</p>
141
- <div id="M000150_source" class="dyn-source">
140
+ <p class="source-link">[ <a href="javascript:toggleSource('M000157_source')" id="l_M000157_source">show source</a> ]</p>
141
+ <div id="M000157_source" class="dyn-source">
142
142
  <pre>
143
143
  <span class="ruby-comment cmt"># File lib/phusion_passenger/spawn_manager.rb, line 61</span>
144
144
  61: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
@@ -180,7 +180,7 @@ work around an obscure bug in ActiveSupport&#8216;s Dispatcher.
180
180
  <div class="sectiontitle">Public Instance methods</div>
181
181
  <div class="method">
182
182
  <div class="title">
183
- <a name="M000153"></a><b>cleanup</b>()
183
+ <a name="M000160"></a><b>cleanup</b>()
184
184
  </div>
185
185
  <div class="description">
186
186
  <p>
@@ -189,8 +189,8 @@ href="SpawnManager.html">SpawnManager</a> is no longer needed.
189
189
  </p>
190
190
  </div>
191
191
  <div class="sourcecode">
192
- <p class="source-link">[ <a href="javascript:toggleSource('M000153_source')" id="l_M000153_source">show source</a> ]</p>
193
- <div id="M000153_source" class="dyn-source">
192
+ <p class="source-link">[ <a href="javascript:toggleSource('M000160_source')" id="l_M000160_source">show source</a> ]</p>
193
+ <div id="M000160_source" class="dyn-source">
194
194
  <pre>
195
195
  <span class="ruby-comment cmt"># File lib/phusion_passenger/spawn_manager.rb, line 215</span>
196
196
  215: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cleanup</span>
@@ -202,7 +202,7 @@ href="SpawnManager.html">SpawnManager</a> is no longer needed.
202
202
  </div>
203
203
  <div class="method">
204
204
  <div class="title">
205
- <a name="M000152"></a><b>reload</b>(app_root = nil)
205
+ <a name="M000159"></a><b>reload</b>(app_root = nil)
206
206
  </div>
207
207
  <div class="description">
208
208
  <p>
@@ -213,8 +213,8 @@ will be removed, no matter the application root.
213
213
  <p>
214
214
  <b>Long description:</b> <a href="Application.html">Application</a> code
215
215
  might be cached in memory. But once it a while, it will be necessary to <a
216
- href="SpawnManager.html#M000152">reload</a> the code for an application,
217
- such as after deploying a <a href="SpawnManager.html#M000150">new</a>
216
+ href="SpawnManager.html#M000159">reload</a> the code for an application,
217
+ such as after deploying a <a href="SpawnManager.html#M000157">new</a>
218
218
  version of the application. This method makes sure that any cached
219
219
  application code is removed, so that the next time an application instance
220
220
  is spawned, the application code will be freshly loaded into memory.
@@ -224,8 +224,8 @@ Raises AbstractServer::SpawnError if something went wrong.
224
224
  </p>
225
225
  </div>
226
226
  <div class="sourcecode">
227
- <p class="source-link">[ <a href="javascript:toggleSource('M000152_source')" id="l_M000152_source">show source</a> ]</p>
228
- <div id="M000152_source" class="dyn-source">
227
+ <p class="source-link">[ <a href="javascript:toggleSource('M000159_source')" id="l_M000159_source">show source</a> ]</p>
228
+ <div id="M000159_source" class="dyn-source">
229
229
  <pre>
230
230
  <span class="ruby-comment cmt"># File lib/phusion_passenger/spawn_manager.rb, line 188</span>
231
231
  188: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reload</span>(<span class="ruby-identifier">app_root</span> = <span class="ruby-keyword kw">nil</span>)
@@ -259,7 +259,7 @@ Raises AbstractServer::SpawnError if something went wrong.
259
259
  </div>
260
260
  <div class="method">
261
261
  <div class="title">
262
- <a name="M000151"></a><b>spawn_application</b>(options)
262
+ <a name="M000158"></a><b>spawn_application</b>(options)
263
263
  </div>
264
264
  <div class="description">
265
265
  <p>
@@ -288,12 +288,12 @@ must do one of these things:
288
288
 
289
289
  <ul>
290
290
  <li>Restart this <a href="SpawnManager.html">SpawnManager</a> by calling <a
291
- href="AbstractServer.html#M000122">AbstractServer#stop</a>, then <a
292
- href="AbstractServer.html#M000120">AbstractServer#start</a>.
291
+ href="AbstractServer.html#M000129">AbstractServer#stop</a>, then <a
292
+ href="AbstractServer.html#M000127">AbstractServer#start</a>.
293
293
 
294
294
  </li>
295
295
  <li>Reload the application by calling <a
296
- href="SpawnManager.html#M000152">reload</a> with the correct app_root
296
+ href="SpawnManager.html#M000159">reload</a> with the correct app_root
297
297
  argument.
298
298
 
299
299
  </li>
@@ -354,8 +354,8 @@ exception or called exit() during startup.
354
354
  </ul>
355
355
  </div>
356
356
  <div class="sourcecode">
357
- <p class="source-link">[ <a href="javascript:toggleSource('M000151_source')" id="l_M000151_source">show source</a> ]</p>
358
- <div id="M000151_source" class="dyn-source">
357
+ <p class="source-link">[ <a href="javascript:toggleSource('M000158_source')" id="l_M000158_source">show source</a> ]</p>
358
+ <div id="M000158_source" class="dyn-source">
359
359
  <pre>
360
360
  <span class="ruby-comment cmt"># File lib/phusion_passenger/spawn_manager.rb, line 142</span>
361
361
  142: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">spawn_application</span>(<span class="ruby-identifier">options</span>)
@@ -80,7 +80,7 @@ StandardError
80
80
 
81
81
  <div class="sectiontitle">Methods</div>
82
82
  <ul>
83
- <li><a href="#M000155">new</a></li>
83
+ <li><a href="#M000162">new</a></li>
84
84
  </ul>
85
85
 
86
86
 
@@ -101,11 +101,11 @@ StandardError
101
101
  <div class="sectiontitle">Public Class methods</div>
102
102
  <div class="method">
103
103
  <div class="title">
104
- <a name="M000155"></a><b>new</b>(message, class_name, backtrace)
104
+ <a name="M000162"></a><b>new</b>(message, class_name, backtrace)
105
105
  </div>
106
106
  <div class="sourcecode">
107
- <p class="source-link">[ <a href="javascript:toggleSource('M000155_source')" id="l_M000155_source">show source</a> ]</p>
108
- <div id="M000155_source" class="dyn-source">
107
+ <p class="source-link">[ <a href="javascript:toggleSource('M000162_source')" id="l_M000162_source">show source</a> ]</p>
108
+ <div id="M000162_source" class="dyn-source">
109
109
  <pre>
110
110
  <span class="ruby-comment cmt"># File lib/phusion_passenger/exceptions.rb, line 93</span>
111
111
  93: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">class_name</span>, <span class="ruby-identifier">backtrace</span>)
@@ -58,6 +58,7 @@
58
58
  <td>In:</td>
59
59
  <td>
60
60
  <a href="../../files/lib/phusion_passenger/utils_rb.html">lib/phusion_passenger/utils.rb</a>
61
+ <a href="../../files/lib/phusion_passenger/utils/rewindable_input_rb.html">lib/phusion_passenger/utils/rewindable_input.rb</a>
61
62
  </td>
62
63
  </tr>
63
64
  </table>
@@ -104,6 +105,7 @@ Utility functions.
104
105
 
105
106
  <div class="sectiontitle">Classes and Modules</div>
106
107
  Class <a href="Utils/PseudoIO.html" class="link">PhusionPassenger::Utils::PseudoIO</a><br />
108
+ Class <a href="Utils/RewindableInput.html" class="link">PhusionPassenger::Utils::RewindableInput</a><br />
107
109
 
108
110
 
109
111
 
@@ -80,10 +80,10 @@ Object
80
80
 
81
81
  <div class="sectiontitle">Methods</div>
82
82
  <ul>
83
- <li><a href="#M000096">done!</a></li>
84
- <li><a href="#M000097">method_missing</a></li>
85
- <li><a href="#M000095">new</a></li>
86
- <li><a href="#M000098">respond_to?</a></li>
83
+ <li><a href="#M000103">done!</a></li>
84
+ <li><a href="#M000104">method_missing</a></li>
85
+ <li><a href="#M000102">new</a></li>
86
+ <li><a href="#M000105">respond_to?</a></li>
87
87
  </ul>
88
88
 
89
89
 
@@ -94,11 +94,11 @@ Object
94
94
  <div class="sectiontitle">Public Class methods</div>
95
95
  <div class="method">
96
96
  <div class="title">
97
- <a name="M000095"></a><b>new</b>(sink)
97
+ <a name="M000102"></a><b>new</b>(sink)
98
98
  </div>
99
99
  <div class="sourcecode">
100
- <p class="source-link">[ <a href="javascript:toggleSource('M000095_source')" id="l_M000095_source">show source</a> ]</p>
101
- <div id="M000095_source" class="dyn-source">
100
+ <p class="source-link">[ <a href="javascript:toggleSource('M000102_source')" id="l_M000102_source">show source</a> ]</p>
101
+ <div id="M000102_source" class="dyn-source">
102
102
  <pre>
103
103
  <span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 206</span>
104
104
  206: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">sink</span>)
@@ -112,11 +112,11 @@ Object
112
112
  <div class="sectiontitle">Public Instance methods</div>
113
113
  <div class="method">
114
114
  <div class="title">
115
- <a name="M000096"></a><b>done!</b>()
115
+ <a name="M000103"></a><b>done!</b>()
116
116
  </div>
117
117
  <div class="sourcecode">
118
- <p class="source-link">[ <a href="javascript:toggleSource('M000096_source')" id="l_M000096_source">show source</a> ]</p>
119
- <div id="M000096_source" class="dyn-source">
118
+ <p class="source-link">[ <a href="javascript:toggleSource('M000103_source')" id="l_M000103_source">show source</a> ]</p>
119
+ <div id="M000103_source" class="dyn-source">
120
120
  <pre>
121
121
  <span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 211</span>
122
122
  211: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">done!</span>
@@ -130,11 +130,11 @@ Object
130
130
  </div>
131
131
  <div class="method">
132
132
  <div class="title">
133
- <a name="M000097"></a><b>method_missing</b>(*args, &amp;block)
133
+ <a name="M000104"></a><b>method_missing</b>(*args, &amp;block)
134
134
  </div>
135
135
  <div class="sourcecode">
136
- <p class="source-link">[ <a href="javascript:toggleSource('M000097_source')" id="l_M000097_source">show source</a> ]</p>
137
- <div id="M000097_source" class="dyn-source">
136
+ <p class="source-link">[ <a href="javascript:toggleSource('M000104_source')" id="l_M000104_source">show source</a> ]</p>
137
+ <div id="M000104_source" class="dyn-source">
138
138
  <pre>
139
139
  <span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 217</span>
140
140
  217: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>, <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>)
@@ -147,11 +147,11 @@ Object
147
147
  </div>
148
148
  <div class="method">
149
149
  <div class="title">
150
- <a name="M000098"></a><b>respond_to?</b>(symbol, include_private = false)
150
+ <a name="M000105"></a><b>respond_to?</b>(symbol, include_private = false)
151
151
  </div>
152
152
  <div class="sourcecode">
153
- <p class="source-link">[ <a href="javascript:toggleSource('M000098_source')" id="l_M000098_source">show source</a> ]</p>
154
- <div id="M000098_source" class="dyn-source">
153
+ <p class="source-link">[ <a href="javascript:toggleSource('M000105_source')" id="l_M000105_source">show source</a> ]</p>
154
+ <div id="M000105_source" class="dyn-source">
155
155
  <pre>
156
156
  <span class="ruby-comment cmt"># File lib/phusion_passenger/utils.rb, line 222</span>
157
157
  222: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">symbol</span>, <span class="ruby-identifier">include_private</span> = <span class="ruby-keyword kw">false</span>)
@@ -85,7 +85,7 @@ given Ruby on Rails Gem version specification.
85
85
 
86
86
  <div class="sectiontitle">Methods</div>
87
87
  <ul>
88
- <li><a href="#M000154">new</a></li>
88
+ <li><a href="#M000161">new</a></li>
89
89
  </ul>
90
90
 
91
91
 
@@ -106,7 +106,7 @@ given Ruby on Rails Gem version specification.
106
106
  <div class="sectiontitle">Public Class methods</div>
107
107
  <div class="method">
108
108
  <div class="title">
109
- <a name="M000154"></a><b>new</b>(message, gem_version_spec)
109
+ <a name="M000161"></a><b>new</b>(message, gem_version_spec)
110
110
  </div>
111
111
  <div class="description">
112
112
  <ul>
@@ -120,8 +120,8 @@ caused this error.
120
120
  </ul>
121
121
  </div>
122
122
  <div class="sourcecode">
123
- <p class="source-link">[ <a href="javascript:toggleSource('M000154_source')" id="l_M000154_source">show source</a> ]</p>
124
- <div id="M000154_source" class="dyn-source">
123
+ <p class="source-link">[ <a href="javascript:toggleSource('M000161_source')" id="l_M000161_source">show source</a> ]</p>
124
+ <div id="M000161_source" class="dyn-source">
125
125
  <pre>
126
126
  <span class="ruby-comment cmt"># File lib/phusion_passenger/exceptions.rb, line 33</span>
127
127
  33: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">gem_version_spec</span>)
@@ -776,7 +776,7 @@ the compiler.
776
776
  346: <span class="ruby-identifier">flags</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">'-DBOOST_HAS_STDINT_H -D_GLIBCPP__PTHREADS'</span>
777
777
  347: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/aix/</span>
778
778
  348: <span class="ruby-identifier">flags</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">'-DOXT_DISABLE_BACKTRACES'</span>
779
- 349: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/(sparc-linux|arm-linux)/</span>
779
+ 349: <span class="ruby-keyword kw">elsif</span> <span class="ruby-constant">RUBY_PLATFORM</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/(sparc-linux|arm-linux|sh4-linux)/</span>
780
780
  350: <span class="ruby-comment cmt"># http://code.google.com/p/phusion-passenger/issues/detail?id=200</span>
781
781
  351: <span class="ruby-comment cmt"># http://groups.google.com/group/phusion-passenger/t/6b904a962ee28e5c</span>
782
782
  352: <span class="ruby-identifier">flags</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">'-DBOOST_SP_USE_PTHREADS'</span>
@@ -104,21 +104,29 @@ Like Signal.list, but only returns signals that we can actually trap.
104
104
  559: <span class="ruby-identifier">result</span> = <span class="ruby-constant">Signal</span>.<span class="ruby-identifier">list</span>
105
105
  560: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;ALRM&quot;</span>)
106
106
  561: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;VTALRM&quot;</span>)
107
- 562: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>
108
- 563: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;jruby&quot;</span>
109
- 564: <span class="ruby-identifier">result</span> = <span class="ruby-constant">Signal</span>.<span class="ruby-identifier">list</span>
110
- 565: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;QUIT&quot;</span>)
111
- 566: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;ILL&quot;</span>)
112
- 567: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;FPE&quot;</span>)
113
- 568: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;KILL&quot;</span>)
114
- 569: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;SEGV&quot;</span>)
115
- 570: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;STOP&quot;</span>)
116
- 571: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;USR1&quot;</span>)
117
- 572: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>
118
- 573: <span class="ruby-keyword kw">else</span>
119
- 574: <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Signal</span>.<span class="ruby-identifier">list</span>
120
- 575: <span class="ruby-keyword kw">end</span>
121
- 576: <span class="ruby-keyword kw">end</span>
107
+ 562: <span class="ruby-keyword kw">when</span> <span class="ruby-value str">&quot;jruby&quot;</span>
108
+ 563: <span class="ruby-identifier">result</span> = <span class="ruby-constant">Signal</span>.<span class="ruby-identifier">list</span>
109
+ 564: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;QUIT&quot;</span>)
110
+ 565: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;ILL&quot;</span>)
111
+ 566: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;FPE&quot;</span>)
112
+ 567: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;KILL&quot;</span>)
113
+ 568: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;SEGV&quot;</span>)
114
+ 569: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;USR1&quot;</span>)
115
+ 570: <span class="ruby-keyword kw">else</span>
116
+ 571: <span class="ruby-identifier">result</span> = <span class="ruby-constant">Signal</span>.<span class="ruby-identifier">list</span>
117
+ 572: <span class="ruby-keyword kw">end</span>
118
+ 573:
119
+ 574: <span class="ruby-comment cmt"># Don't touch SIGCHLD no matter what! On OS X waitpid() will</span>
120
+ 575: <span class="ruby-comment cmt"># malfunction if SIGCHLD doesn't have a correct handler.</span>
121
+ 576: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;CLD&quot;</span>)
122
+ 577: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;CHLD&quot;</span>)
123
+ 578:
124
+ 579: <span class="ruby-comment cmt"># Other stuff that we don't want to trap no matter which</span>
125
+ 580: <span class="ruby-comment cmt"># Ruby engine.</span>
126
+ 581: <span class="ruby-identifier">result</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-value str">&quot;STOP&quot;</span>)
127
+ 582:
128
+ 583: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>
129
+ 584: <span class="ruby-keyword kw">end</span>
122
130
  </pre>
123
131
  </div>
124
132
  </div>
@@ -1 +1 @@
1
- Wed, 18 Nov 2009 17:56:31 +0100
1
+ Tue, 15 Dec 2009 17:41:24 -0800
@@ -63,7 +63,7 @@
63
63
  </tr>
64
64
  <tr>
65
65
  <td>Modified:</td>
66
- <td>Wed Nov 18 17:54:42 +0100 2009</td>
66
+ <td>Tue Dec 15 11:58:38 -0800 2009</td>
67
67
  </tr>
68
68
  </table>
69
69
  </td></tr>
@@ -63,7 +63,7 @@
63
63
  </tr>
64
64
  <tr>
65
65
  <td>Modified:</td>
66
- <td>Thu Apr 16 19:42:11 +0200 2009</td>
66
+ <td>Thu Nov 26 03:03:43 -0800 2009</td>
67
67
  </tr>
68
68
  </table>
69
69
  </td></tr>
@@ -63,7 +63,7 @@
63
63
  </tr>
64
64
  <tr>
65
65
  <td>Modified:</td>
66
- <td>Wed Nov 18 17:54:43 +0100 2009</td>
66
+ <td>Tue Dec 15 11:58:39 -0800 2009</td>
67
67
  </tr>
68
68
  </table>
69
69
  </td></tr>
@@ -63,7 +63,7 @@
63
63
  </tr>
64
64
  <tr>
65
65
  <td>Modified:</td>
66
- <td>Wed Nov 18 17:54:43 +0100 2009</td>
66
+ <td>Tue Dec 15 11:58:39 -0800 2009</td>
67
67
  </tr>
68
68
  </table>
69
69
  </td></tr>
@@ -63,7 +63,7 @@
63
63
  </tr>
64
64
  <tr>
65
65
  <td>Modified:</td>
66
- <td>Wed Nov 18 17:54:43 +0100 2009</td>
66
+ <td>Tue Dec 15 11:58:39 -0800 2009</td>
67
67
  </tr>
68
68
  </table>
69
69
  </td></tr>
@@ -63,7 +63,7 @@
63
63
  </tr>
64
64
  <tr>
65
65
  <td>Modified:</td>
66
- <td>Thu Apr 16 19:42:11 +0200 2009</td>
66
+ <td>Thu Apr 16 10:42:11 -0700 2009</td>
67
67
  </tr>
68
68
  </table>
69
69
  </td></tr>