Skip to content

Commit

Permalink
Use simpler behaviour for setting process name.
Browse files Browse the repository at this point in the history
Unfortunately, it tends to be truncated. This means that Test::Unit
displays a truncated test suite name, for instance.
  • Loading branch information
candlerb committed May 16, 2009
1 parent ecaa978 commit b82773e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/snailgun
Expand Up @@ -66,7 +66,7 @@ when :rails
ENV['RAILS_ENV'] = env
load conf
require File.expand_path(RAILS_ROOT + '/config/environment')
require 'test_help' if env == 'test' # drastic speedup
require 'test_help' if env == 'test' # drastic speedup, although running rake gives spurious empty test suite
if Rails.configuration.cache_classes
STDERR.puts <<EOS
WARNING: Snailgun doesn't work well with `cache_classes`. Strongly recommend
Expand Down
6 changes: 3 additions & 3 deletions lib/snailgun/server.rb
Expand Up @@ -73,14 +73,14 @@ def start_ruby(args)

ARGV.replace(args)
if !e.empty?
$0.replace('-e') rescue ($0 = '-e')
$0 = '-e'
e.each { |expr| eval(expr, TOPLEVEL_BINDING) }
elsif ARGV.empty?
$0.replace('-') rescue ($0 = '-e')
$0 = '-'
eval(STDIN.read, TOPLEVEL_BINDING)
else
cmd = ARGV.shift
$0.replace(cmd) rescue ($0 = cmd)
$0 = cmd
load(cmd)
end
end
Expand Down

0 comments on commit b82773e

Please sign in to comment.