lordwelch edd7a9ddc9 Improve the agent signal handling and error handling
There is probably a better way to make the list of signals to catch

I also noticed that the agent kept dying on me when the CA was not setup
correctly with an EOF error from the ssh client
2020-05-04 04:09:57 -07:00

11 lines
130 B
Go

// +build darwin linux
package main
import (
"syscall"
)
func init() {
sigs = append(sigs, syscall.SIGTERM, syscall.SIGHUP)
}