--- libaitio/src/exec.c 2013/12/05 14:12:25 1.1.2.4 +++ libaitio/src/exec.c 2013/12/05 14:16:33 1.1.2.5 @@ -140,12 +140,12 @@ io_progOpen(prog_t * __restrict prg, u_int execNum) f = io_popen(prg->prog_name, "r+", &pid); if (!f) { LOGERR; - ret *= -1; + ret = -1; break; } else if (waitpid(pid, &stat, WNOHANG) > 0) { io_SetErr(ECHILD, "Program exit with status %d", WIFEXITED(stat) ? WEXITSTATUS(stat) : -1); - ret *= -1; + ret = -1; break; } else array_Set(prg->prog_fds, i, f);