Sha256: e50665940013ccb56f10aaec7b6906c47a410c9bcf7d6c7596f098758e09fcc8

Contents?: true

Size: 252 Bytes

Versions: 20

Compression:

Stored size: 252 Bytes

Contents

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
tagen-1.1.7 lib/tagen/core/process.rb
tagen-1.1.6 lib/tagen/core/process.rb
tagen-1.1.5 lib/tagen/core/process.rb
tagen-1.1.4 lib/tagen/core/process.rb
tagen-1.1.3 lib/tagen/core/process.rb
tagen-1.1.2 lib/tagen/core/process.rb
tagen-1.1.1 lib/tagen/core/process.rb
tagen-1.1.0 lib/tagen/core/process.rb
tagen-1.0.4 lib/tagen/core/process.rb
tagen-1.0.3 lib/tagen/core/process.rb
tagen-1.0.2 lib/tagen/core/process.rb
tagen-1.0.1 lib/tagen/core/process.rb
tagen-1.0.0 lib/tagen/core/process.rb
tagen-0.2.5 lib/tagen/core/process.rb
tagen-0.2.4 lib/tagen/core/process.rb
tagen-0.2.3 lib/tagen/core/process.rb
tagen-0.2.1 lib/tagen/core/process.rb
tagen-0.2.0 lib/tagen/core/process.rb
tagen-0.1.1 lib/tagen/core/process.rb
tagen-0.1.0 lib/tagen/core/process.rb