diff --git a/vendor/gems/message_bus/lib/message_bus/diagnostics.rb b/vendor/gems/message_bus/lib/message_bus/diagnostics.rb index 871755afbd6..f4248dd5615 100644 --- a/vendor/gems/message_bus/lib/message_bus/diagnostics.rb +++ b/vendor/gems/message_bus/lib/message_bus/diagnostics.rb @@ -4,6 +4,8 @@ class MessageBus::Diagnostics system = `uname`.strip if system == "Darwin" `ps -o "comm=" -p #{Process.pid}` + elsif system == "FreeBSD" + `ps -o command -p #{Process.pid}`.split("\n",2)[1].strip() else info = `ps -eo "%p|$|%a" | grep '^\\s*#{Process.pid}'` info.strip.split('|$|')[1]