Skip to content

Commit

Permalink
removes Process.detach(pid)
Browse files Browse the repository at this point in the history
  • Loading branch information
recursive committed Dec 31, 2011
1 parent 1e0a1f0 commit 0553b81
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/headless/cli_util.rb
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0553b81

Please sign in to comment.