【问题标题】:"unsupported exec option: close_others" error when starting JRuby启动 JRuby 时出现“不支持的 exec 选项:close_others”错误
【发布时间】:2016-05-29 06:01:52
【问题描述】:

当通过 Bundler 1.10.6 w/JRuby 9.0.4.0 运行 Rake 任务时,我收到以下警告:

uri:classloader:/jruby/kernel/kernel.rb:17: warning: unsupported exec option: close_others

在不使用 bundle exec 的情况下运行 rake 任务时,我没有看到同样的问题。

谁能指出这个警告的来源或消除它的方法?

【问题讨论】:

    标签: ruby rake bundler jruby


    【解决方案1】:

    JRuby 9.X 有changed the way it handles spawning processes

    从 Bundler 的 v1.4.0.rc1 版本开始,现在有一个名为 --keep-file-descriptors 的捆绑 exec 选项,它移植 Ruby 1.9 的行为并保留所有相关的文件描述符。这使您可以抑制此问题。另一种方法是使用 binstubs。从 bundler 1.10.6 升级到 1.11 也可以解决这个问题。

    有关详细信息,请参阅 original Bundler issuepull request that added the option

    【讨论】:

      猜你喜欢
      • 2023-03-05
      • 2019-12-29
      • 2021-12-21
      • 2019-12-25
      • 1970-01-01
      • 2019-08-22
      • 2019-04-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多