Sha256: 3f8185c438ecb86512496fc218ec3c574d170d8885767f81dd3c0f628abf384e

Contents?: true

Size: 493 Bytes

Versions: 64

Compression:

Stored size: 493 Bytes

Contents

module KQueue
  class Watcher
    # The {Watcher} subclass for process events.
    # Process events are watched via {Queue#watch_process}.
    class Process < Watcher
      # The process id of the process being watched.
      #
      # @return [Fixnum]
      attr_reader :pid

      # Creates a new process Watcher.
      #
      # @private
      def initialize(queue, pid, flags, callback)
        @pid = pid
        super(queue, pid, :proc, flags, nil, callback)
      end
    end
  end
end

Version data entries

64 entries across 56 versions & 8 rubygems

Version Path
rb-kqueue-burke-0.1.0 lib/rb-kqueue/watcher/process.rb
rb-kqueue-0.1.0 lib/rb-kqueue/watcher/process.rb
rb-kqueue-0.0.3 lib/rb-kqueue/watcher/process.rb
rb-kqueue-0.0.2 lib/rb-kqueue/watcher/process.rb