    # File lib/merb-core/server.rb, line 88
          def kill(port, sig = "INT")
            if sig.is_a?(Integer)
              sig = Signal.list.invert[sig]
            end

            Merb::BootLoader::BuildFramework.run

            # If we kill the master, then the workers should be reaped also.
            if %w(main master all).include?(port)
              # If a graceful exit is requested then send INT to the master process.
              #
              # Otherwise read pids from pid files and try to kill each process in turn.
              kill_pid(sig, pid_file("main")) if sig == "INT"
            else
              kill_pid(sig, pid_file(port))
            end
          end