Skip to content

Commit

Permalink
Merge pull request #1192 from fluent/update-serverengine-related-code
Browse files Browse the repository at this point in the history
fix code depending ServerEngine 2.0
  • Loading branch information
tagomoris authored Aug 30, 2016
2 parents 31f34c3 + 37fb0a4 commit cd6c71a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fluentd.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency("json", [">= 1.4.3"])
gem.add_runtime_dependency("yajl-ruby", ["~> 1.0"])
gem.add_runtime_dependency("cool.io", [">= 1.4.3", "< 2.0.0"])
gem.add_runtime_dependency("serverengine", ["= 2.0.0pre2"])
gem.add_runtime_dependency("serverengine", ["~> 2.0"])
gem.add_runtime_dependency("http_parser.rb", [">= 0.5.1", "< 0.7.0"])
gem.add_runtime_dependency("sigdump", ["~> 0.2.2"])
gem.add_runtime_dependency("tzinfo", [">= 1.0.0"])
Expand Down
4 changes: 2 additions & 2 deletions lib/fluent/supervisor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ def init
if @path && @path != "-"
@io = File.open(@path, "a")
if @chuser || @chgroup
chuid = @chuser ? ServerEngine::Daemon.get_etc_passwd(@chuser).uid : nil
chgid = @chgroup ? ServerEngine::Daemon.get_etc_group(@chgroup).gid : nil
chuid = @chuser ? ServerEngine::Privilege.get_etc_passwd(@chuser).uid : nil
chgid = @chgroup ? ServerEngine::Privilege.get_etc_group(@chgroup).gid : nil
File.chown(chuid, chgid, @path)
end
else
Expand Down

0 comments on commit cd6c71a

Please sign in to comment.