<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">Kouhei Sutou <kou****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2013-06-14 16:31:16 +0900 (Fri, 14 Jun 2013)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282">243437e30eb12651133fae436ca211a42a9e1282</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Support graceful shutdown
It requires groonga 3.0.5 and rroonga 3.0.3. They are not released
yet.</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#diff-0">fluent-plugin-droonga.gemspec</a></li>
<li><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#diff-1">lib/droonga/worker.rb</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: fluent-plugin-droonga.gemspec (+1 -1)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0L27">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0L28">28</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0L29">29</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0L30">30</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0L31">31</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0L32">32</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0L33">33</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0L34">34</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0R27">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0R28">28</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0R29">29</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0R30">30</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0R31">31</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0R32">32</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0R33">33</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L0R34">34</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -28,7 +28,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">Gem::Specification.new do |gem|</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> gem.test_files = gem.files.grep(%r{^(test|spec|features)/})</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> gem.require_paths = ["lib"]</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> gem.add_dependency "fluentd"</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- gem.add_dependency "rroonga"</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ gem.add_dependency "rroonga", ">= 3.0.3"</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> gem.add_dependency "fluent-logger"</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> gem.add_development_dependency "rake"</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> gem.add_development_dependency "bundler"</span>
</pre>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/droonga/worker.rb (+19 -4)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L41">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L42">42</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L43">43</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L44">44</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L45">45</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L46">46</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L47">47</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L48">48</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L49">49</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L50">50</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L51">51</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L75">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L76">76</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L77">77</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L78">78</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L79">79</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L80">80</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1L81">81</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R41">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R42">42</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R43">43</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R44">44</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R45">45</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R46">46</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R47">47</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R48">48</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R72">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R73">73</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R74">74</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R75">75</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R76">76</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R77">77</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R78">78</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R79">79</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R80">80</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R81">81</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R82">82</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R83">83</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R84">84</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R85">85</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R86">86</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R87">87</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R88">88</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R89">89</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R90">90</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R91">91</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R92">92</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R93">93</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R94">94</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R95">95</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/fluent-plugin-droonga/commit/243437e30eb12651133fae436ca211a42a9e1282#L1R96">96</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -42,10 +42,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module Droonga</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> def shutdown</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- @pool.each do |pid|</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- # TODO: do it gracefully</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- Process.kill(:KILL, pid)</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ shutdown_workers</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> @handlers.each do |handler|</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> handler.shutdown</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -76,6 +73,24 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module Droonga</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> end</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> private</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ def shutdown_workers</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @pool.each do |pid|</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ Process.kill(:TERM, pid)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ queue = @context[@queue_name]</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ 3.times do |i|</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ break if @pool.empty?</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ queue.unblock</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @pool.reject! do |pid|</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ not Process.waitpid(pid, Process::WNOHANG).nil?</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ sleep(i ** 2 * 0.1)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ @pool.each do |pid|</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ Process.kill(:KILL, pid)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ end</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> def post_or_push(message, body, destination)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> route = nil</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> unless destination</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>