* any keypress.
*/
if (inst->exited)
- exit(0);
+ cleanup_exit(0);
}
static gint idle_exit_func(gpointer data)
}
sprintf(option, "---[%d,%d]", pipefd[0], size);
- fcntl(pipefd[0], F_SETFD, 0);
+ noncloexec(pipefd[0]);
fork_and_exec_self(inst, pipefd[1], option, NULL);
close(pipefd[0]);