Method: Corosync::CPG#leave

Defined in:
lib/corosync/cpg.rb

#leavevoid

This method returns an undefined value.

Leave the current closed process group.



117
118
119
120
121
122
123
124
125
126
127
# File 'lib/corosync/cpg.rb', line 117

def leave()
  return if !@group
  cpg_name = Corosync::CpgName.new
  cpg_name[:value] = @group
  cpg_name[:length] = @group.size

  # we can't join multiple groups, so I dont know why corosync requires you to specify the group name
  Corosync.cs_send(:cpg_leave, @handle, cpg_name)

  @group = nil
end