summaryrefslogtreecommitdiffstats
path: root/cmd-run-shell.c
diff options
context:
space:
mode:
authornicm <nicm>2020-03-19 13:43:18 +0000
committernicm <nicm>2020-03-19 13:43:18 +0000
commite8273a993ec79a58ffff16eba17d0551c690c4db (patch)
tree42b0c159fc138b4a0e49fe39afe881cdd093d511 /cmd-run-shell.c
parent581ed718e737fd3875323e74b674bcf7f9d0bcb3 (diff)
Add a flag to run a background process in a pty as well, not used for
anything yet.
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r--cmd-run-shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c
index bc21cc9c..1cf97d51 100644
--- a/cmd-run-shell.c
+++ b/cmd-run-shell.c
@@ -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)