Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…D will be thrown
  • Loading branch information...
commit 504643ebb158ecb5fade585e154cc86a70fe8f6f 1 parent d61f8b3
Adam Klunick recursive authored

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. +1 2  lib/headless/cli_util.rb
3  lib/headless/cli_util.rb
@@ -3,7 +3,7 @@ class CliUtil
3 3 def self.application_exists?(app)
4 4 `which #{app}`.strip != ""
5 5 end
6   -
  6 +
7 7 def self.ensure_application_exists!(app, error_message)
8 8 if !self.application_exists?(app)
9 9 raise Headless::Exception.new(error_message)
@@ -36,7 +36,6 @@ def self.fork_process(command, pid_filename, log_filename='/dev/null')
36 36 exec command
37 37 exit! 127 # safeguard in case exec fails
38 38 end
39   - Process.detach(pid)
40 39
41 40 File.open pid_filename, 'w' do |f|
42 41 f.puts pid

0 comments on commit 504643e

Please sign in to comment.
Something went wrong with that request. Please try again.