Do not exec() if binary path is empty

This commit is contained in:
eleksir
2026-03-31 00:38:15 +03:00
parent d5f81e9fd6
commit 13efa0393c

View File

@@ -45,6 +45,7 @@ func (c *MyConfig) Spawner() {
if err != nil {
log.Printf("Unable to spawn %s: %s", prg[0], err)
continue
}
_, err = syscall.ForkExec(bin, prg, &pa)