Sha256: d13f3f255bf4f4dacf71d623ccb63dd54b447ca900d90421083a108a255bc41e

Contents?: true

Size: 284 Bytes

Versions: 3

Compression:

Stored size: 284 Bytes

Contents

require "tagen/core/kernel/platform"

module Process
	# Check if the pid's process is running. 
	# @note for linux only
	#
	# @param [Integer] pid process id
	# @return [Boolean]
	def self.exists?(pid)
		raise NotImplementedError unless linux?
		File.exists?("/proc/#{pid}")
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tagen-2.0.2 lib/tagen/core/process.rb
tagen-2.0.1 lib/tagen/core/process.rb
tagen-2.0.0 lib/tagen/core/process.rb