Skip to content

Instantly share code, notes, and snippets.

@voxik
Created August 26, 2010 19:41
Show Gist options
  • Save voxik/552082 to your computer and use it in GitHub Desktop.
Save voxik/552082 to your computer and use it in GitHub Desktop.
From 2e8330b63bcf811463e620d459218c5581d0dca0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <[email protected]>
Date: Thu, 26 Aug 2010 21:36:34 +0200
Subject: [PATCH] Start the process detached from console.
---
lib/redcar/runner.rb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/lib/redcar/runner.rb b/lib/redcar/runner.rb
index b308caa..85b35a6 100644
--- a/lib/redcar/runner.rb
+++ b/lib/redcar/runner.rb
@@ -16,7 +16,8 @@ module Redcar
# add -d32 -client for faster startup if the jvm is defaulting to server/64bit mode
command = "java #{java_args} -Xmx500m -Xss1024k -Djruby.memory.max=500m -Djruby.stack.max=1024k -cp \"#{jruby_complete}\" org.jruby.Main #{"--debug" if debug_mode?} \"#{bin}\" #{cleaned_args} --no-sub-jruby --ignore-stdin"
puts command
- exec(command)
+ IO.popen(command)
+ exit!
end
def cleaned_args
--
1.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment