Permalink
Browse files

Merge pull request #23 from xijo/master

Ignore HUP in bin/locale
  • Loading branch information...
2 parents b5f4b7e + 9172e41 commit 67d4e3b672b91c1b928ed37cc38917b1835c68d1 @chrismcg chrismcg committed Mar 9, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 bin/localeapp
View
@@ -125,8 +125,10 @@ command :daemon do |c|
STDOUT.reopen(File.open(Localeapp.configuration.daemon_log_file, 'a'))
pid = fork do
+ Signal.trap('HUP', 'IGNORE')
command.call
end
+ Process.detach(pid)
File.open(Localeapp.configuration.daemon_pid_file, 'w') {|f| f << pid}
else

0 comments on commit 67d4e3b

Please sign in to comment.