check_command (God::CLI::Command)

    # File lib/god/cli/command.rb, line 126
          def check_command
            Thread.new do
              begin
                event_system = God::EventHandler.event_system
                puts "using event system: #{event_system}"

                if God::EventHandler.loaded?
                  puts "starting event handler"
                  God::EventHandler.start
                else
                  puts "[fail] event system did not load"
                  exit(1)
                end

                puts 'forking off new process'

                pid = fork do
                  loop { sleep(1) }
                end

                puts "forked process with pid = #{pid}"

                God::EventHandler.register(pid, :proc_exit) do
                  puts "[ok] process exit event received"
                  exit!(0)
                end

                sleep(1)

                puts "killing process"

                ::Process.kill('KILL', pid)
              rescue => e
                puts e.message
                puts e.backtrace.join("\n")
              end
            end

            sleep(2)

            puts "[fail] never received process exit event"
            exit(1)
          end