Permalink
Browse files

no need to detach process, if this line is left in tact, Errno::ECHIL…

…D will be thrown
  • Loading branch information...
1 parent d61f8b3 commit 504643ebb158ecb5fade585e154cc86a70fe8f6f @recursive recursive committed Dec 29, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/headless/cli_util.rb
View
@@ -3,7 +3,7 @@ class CliUtil
def self.application_exists?(app)
`which #{app}`.strip != ""
end
-
+
def self.ensure_application_exists!(app, error_message)
if !self.application_exists?(app)
raise Headless::Exception.new(error_message)
@@ -36,7 +36,6 @@ def self.fork_process(command, pid_filename, log_filename='/dev/null')
exec command
exit! 127 # safeguard in case exec fails
end
- Process.detach(pid)
File.open pid_filename, 'w' do |f|
f.puts pid

0 comments on commit 504643e

Please sign in to comment.