lib/celluloid.rb in celluloid-0.17.1.2 vs lib/celluloid.rb in celluloid-0.17.2

- old
+ new

@@ -22,11 +22,11 @@ # Warning message added to Celluloid objects accessed outside their actors BARE_OBJECT_WARNING_MESSAGE = "WARNING: BARE CELLULOID OBJECT " class << self - attr_writer :actor_system # Default Actor System + attr_writer :actor_system # Default Actor System attr_accessor :logger # Thread-safe logger class attr_accessor :log_actor_crashes attr_accessor :group_class # Default internal thread group to use attr_accessor :task_class # Default task type to use attr_accessor :shutdown_timeout # How long actors have to terminate @@ -163,10 +163,10 @@ return if defined?(@shutdown_registered) && @shutdown_registered # Terminate all actors at exit at_exit do sleep 0.126 # hax grace period for unnaturally terminating actors - # allows "reason" in exit_handler to resolve before being destroyed + # allows "reason" in exit_handler to resolve before being destroyed if defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" && RUBY_VERSION >= "1.9" # workaround for MRI bug losing exit status in at_exit block # http://bugs.ruby-lang.org/issues/5218 exit_status = $ERROR_INFO.status if $ERROR_INFO.is_a?(SystemExit) Celluloid.shutdown