Sha256: 8e00ae965b343957637dde8b9a85c4ddeb687ec32a714c6bf8c181b579d3eac1

Contents?: true

Size: 566 Bytes

Versions: 1

Compression:

Stored size: 566 Bytes

Contents

class Autorespawn
    # A Slave-compatible object that represents the manager's process itself
    class Self < Slave
        def initialize(*args, **options)
            super

            @pid = Process.pid
        end

        def needed?(*); false end
        def needed!; end
        def spawn
            pid
        end
        def write_initial_dump
            true
        end
        def kill(*, **)
        end
        def join
        end
        def running?
            true
        end
        def finished?
            false
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
autorespawn-0.6.0 lib/autorespawn/self.rb