Method: Process::Group#id

Defined in:
lib/process/group.rb

#idObject

The id of the process group, only valid if processes are currently running.

Raises:

  • (RuntimeError)


132
133
134
135
136
# File 'lib/process/group.rb', line 132

def id
  raise RuntimeError.new("No processes in group, no group id available.") if @running.size == 0
  
  -@pgid
end