// SendSignal sends a signal to all processes inside the process group. It is
// analagous to kernel/signal.c:kill_pgrp.
SendSignal sends a signal to all processes inside the process group. It is
analagous to kernel/signal.c:kill_pgrp.
// SendSignal sends a signal to all processes inside the process group . It is // analagous to kernel / signal . c : kill_pgrp .
func (pg *ProcessGroup) SendSignal(info *linux.SignalInfo) error {
	tasks := pg.originator.TaskSet()
	tasks.mu.RLock()
	defer tasks.mu.RUnlock()
	var lastErr error
	for tg := range tasks.Root.tgids {
		if tg.processGroup == pg {
			tg.signalHandlers.mu.Lock()
			infoCopy := *info
			if err := tg.leader.sendSignalLocked(&infoCopy, true ); err != nil {
				lastErr = err
			}
			tg.signalHandlers.mu.Unlock()
		}
	}
	return lastErr
}
func ( pg * ProcessGroup ) SendSignal ( info * linux . SignalInfo ) error { tasks := pg . originator . TaskSet ( ) tasks . mu . RLock ( ) defer tasks . mu . RUnlock ( ) var lastErr error for tg := range tasks . Root . tgids { if tg . processGroup == pg { tg . signalHandlers . mu . Lock ( ) infoCopy := * info if err := tg . leader . sendSignalLocked ( & infoCopy , true ) ; err != nil { lastErr = err } tg . signalHandlers . mu . Unlock ( ) } } return lastErr }
SendSignal sends a signal to all processes inside the process group.
SendSignal sends a signal to all processes inside the process group .
/*group*/