Add a flag to run a background process in a pty as well, not used for

anything yet.
This commit is contained in:
nicm
2020-03-19 13:43:18 +00:00
parent 581ed718e7
commit e8273a993e
6 changed files with 61 additions and 37 deletions

View File

@ -145,8 +145,8 @@ cmd_run_shell_timer(__unused int fd, __unused short events, void* arg)
if (cdata->cmd != NULL) {
if (job_run(cdata->cmd, cdata->s, cdata->cwd, NULL,
cmd_run_shell_callback, cmd_run_shell_free, cdata,
0) == NULL)
cmd_run_shell_callback, cmd_run_shell_free, cdata, 0, -1,
-1) == NULL)
cmd_run_shell_free(cdata);
} else {
if (cdata->item != NULL)