Skip to content
Browse files

Don't mess with LOAD_PATH in daemon_controller.rb

  • Loading branch information...
1 parent c64a372 commit e93ac3bca84bc43ca1155d03d86f96a3fcd02691 @FooBarWidget committed Feb 4, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 lib/daemon_controller.rb
View
7 lib/daemon_controller.rb
@@ -22,15 +22,12 @@
require 'tempfile'
require 'fcntl'
require 'timeout'
-
-libdir = File.expand_path(File.dirname(__FILE__))
-$LOAD_PATH.unshift(libdir)
-require 'daemon_controller/lock_file'
-
if Process.respond_to?(:spawn)
require 'rbconfig'
end
+require 'daemon_controller/lock_file'
+
# Main daemon controller object. See the README for an introduction and tutorial.
class DaemonController
ALLOWED_CONNECT_EXCEPTIONS = [Errno::ECONNREFUSED, Errno::ENETUNREACH,

0 comments on commit e93ac3b

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