提交 87685428 编写于 作者: D Douwe Maan

Explicitly set cwd in Sidekiq memory killer instead of depending on getcwd

上级 49003907
......@@ -45,7 +45,7 @@ module Gitlab
private
def get_rss
output, status = Gitlab::Popen.popen(%W(ps -o rss= -p #{pid}))
output, status = Gitlab::Popen.popen(%W(ps -o rss= -p #{pid}), Rails.root.to_s)
return 0 unless status.zero?
output.to_i
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册