recon_linux.go
func (irc *Bot) hijackSession() bool {
	unaddr, err := net.ResolveUnixAddr("unix", irc.unixastr) // The only way to get an error here is if the first parameter is not one of "unix", "unixgram" or "unixpacket". That will never happen.
	if err != nil {
		panic(err)
	}
	con, err := net.DialUnix("unix", nil, unaddr)
	if err != nil {
		irc.Info("Couldnt restablish connection, no prior bot.", "err", err)
		return false
	}
	ncon, err := sendfd.RecvFD(con)
	if err != nil {
		panic(err)
	}
	netcon, err := net.FileConn(ncon)
	if err != nil {
		panic(err)
	}
	irc.reconnecting = true
	irc.con = netcon
	return true
}
func (irc *Bot) hijackSession() bool {
	unaddr, err := net.ResolveUnixAddr("unix", irc.unixastr) // The only way to get an error here is if the first parameter is not one of "unix", "unixgram" or "unixpacket". That will never happen.
	if err != nil {
		panic(err)
	}
	con, err := net.DialUnix("unix", nil, unaddr)
	if err != nil {
		irc.Info("Couldnt restablish connection, no prior bot.", "err", err)
		return false
	}
	ncon, err := sendfd.RecvFD(con)
	if err != nil {
		panic(err)
	}
	netcon, err := net.FileConn(ncon)
	if err != nil {
		panic(err)
	}
	irc.reconnecting = true
	irc.con = netcon
	return true
}
// Attempt to hijack session previously running bot