func SignalSelfdestructGroup(ctx context.Context) bool {
	gpid, err := syscall.Getpgid(os.Getpid())
	if err == nil {
		if err = syscall.Kill(gpid, syscall.SIGTERM); err == nil {
			return true
		}
	}
	return false
}
// SignalSelfdestructGroup sends SIGTERM to whole process group
SignalSelfdestructGroup sends SIGTERM to whole process group
// SignalSelfdestructGroup sends SIGTERM to whole process group
func SignalSelfdestructGroup(ctx context.Context) bool {
	gpid, err := syscall.Getpgid(os.Getpid())
	if err == nil {
		if err = syscall.Kill(gpid, syscall.SIGTERM); err == nil {
			return true
		}
	}
	return false
}
func SignalSelfdestructGroup ( ctx context . Context ) bool { gpid , err := syscall . Getpgid ( os . Getpid ( ) ) if err == nil { if err = syscall . Kill ( gpid , syscall . SIGTERM ) ; err == nil { return true } } return false }
SignalSelfdestructGroup sends SIGTERM to whole process group
SignalSelfdestructGroup sends SIGTERM to whole process group