Sha256: 65d2d1430b2ac0db10b903fd2dc13fcbf2b109637f3c574df84e4f64c99b84b7

Contents?: true

Size: 430 Bytes

Versions: 3

Compression:

Stored size: 430 Bytes

Contents

module Bluepill
  module ProcessConditions
    # Process must have cache_actual_pid set to false to function correctly:
    #
    # process.checks :zombie_process, every: 5.seconds
    # process.cache_actual_pid = false

    class ZombieProcess < ProcessCondition
      def run(pid, _include_children)
        System.command(pid)
      end

      def check(value)
        (value =~ /\<defunct\>/).nil?
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bluepill-0.1.3 lib/bluepill/process_conditions/zombie_process.rb
bluepill-0.1.2 lib/bluepill/process_conditions/zombie_process.rb
bluepill-0.1.1 lib/bluepill/process_conditions/zombie_process.rb