Permalink
Browse files

Fix error when sending USR1 signal and no log file is supplied.

  • Loading branch information...
macournoyer committed Jul 3, 2012
1 parent f6184c5 commit 12cf2016e647bf605f91fbe66e51060e536a7fbb
Showing with 7 additions and 1 deletion.
  1. +3 −0 CHANGELOG
  2. +3 −0 lib/thin/server.rb
  3. +1 −1 lib/thin/version.rb
View
@@ -1,3 +1,6 @@
+== 1.4.1 Chromeo Fix
+ * Fix error when sending USR1 signal and no log file is supplied.
+
== 1.4.0 Chromeo
* kill -USR1 $PID for log rotation [catwell].
* Fix HUP signal being reseted after deamonization [atotic].
View
@@ -187,7 +187,10 @@ def stop!
@backend.stop!
end
+ # == Reopen log file.
+ # Reopen the log file and redirect STDOUT and STDERR to it.
def reopen_log
+ return unless log_file
file = File.expand_path(log_file)
log ">> Reopening log file: #{file}"
Daemonize.redirect_io(file)
View
@@ -6,7 +6,7 @@ class PlatformNotSupported < RuntimeError; end
module VERSION #:nodoc:
MAJOR = 1
MINOR = 4
- TINY = 0
+ TINY = 1
STRING = [MAJOR, MINOR, TINY].join('.')

0 comments on commit 12cf201

Please sign in to comment.