// IDOfSession returns the Session assigned to s in PID namespace ns.
//
// If this group isn't visible in this namespace, zero will be returned. It is
// the callers responsibility to check that before using this function.
IDOfSession returns the Session assigned to s in PID namespace ns.

If this group isn't visible in this namespace, zero will be returned. It is
the callers responsibility to check that before using this function.
// IDOfSession returns the Session assigned to s in PID namespace ns . // // If this group isn ' t visible in this namespace zero will be returned . It is // the callers responsibility to check that before using this function .
func (ns *PIDNamespace) IDOfSession(s *Session) SessionID {
	ns.owner.mu.RLock()
	defer ns.owner.mu.RUnlock()
	return ns.sids[s]
}
func ( ns * PIDNamespace ) IDOfSession ( s * Session ) SessionID { ns . owner . mu . RLock ( ) defer ns . owner . mu . RUnlock ( ) return ns . sids [ s ] }
IDOfSession returns the Session assigned to s in PID namespace ns.
IDOfSession returns the Session assigned to s in PID namespace ns .