Do not exec() if binary path is empty
This commit is contained in:
@@ -45,6 +45,7 @@ func (c *MyConfig) Spawner() {
|
|||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Unable to spawn %s: %s", prg[0], err)
|
log.Printf("Unable to spawn %s: %s", prg[0], err)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = syscall.ForkExec(bin, prg, &pa)
|
_, err = syscall.ForkExec(bin, prg, &pa)
|
||||||
|
|||||||
Reference in New Issue
Block a user