mirror of https://github.com/hak5/overseer.git
fix rare nil ptr panic
parent
be5b0b50d8
commit
cfea0d4997
|
@ -144,10 +144,12 @@ func (mp *master) handleSignal(s os.Signal) {
|
|||
}
|
||||
|
||||
func (mp *master) sendSignal(s os.Signal) {
|
||||
if mp.slaveCmd != nil && mp.slaveCmd.Process != nil {
|
||||
if err := mp.slaveCmd.Process.Signal(s); err != nil {
|
||||
mp.debugf("signal failed (%s), assuming slave process died unexpectedly", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (mp *master) retreiveFileDescriptors() error {
|
||||
|
|
Loading…
Reference in New Issue