summaryrefslogtreecommitdiffstats
path: root/cmd-if-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-if-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-if-shell.c')
-rw-r--r--cmd-if-shell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-if-shell.c b/cmd-if-shell.c
index 2befbc0c..b008241d 100644
--- a/cmd-if-shell.c
+++ b/cmd-if-shell.c
@@ -144,7 +144,8 @@ cmd_if_shell_exec(struct cmd *self, struct cmdq_item *item)
cmd_find_copy_state(&cdata->input.fs, fs);
if (job_run(shellcmd, s, server_client_get_cwd(item->client, s), NULL,
- cmd_if_shell_callback, cmd_if_shell_free, cdata, 0) == NULL) {
+ cmd_if_shell_callback, cmd_if_shell_free, cdata, 0, -1,
+ -1) == NULL) {
cmdq_error(item, "failed to run command: %s", shellcmd);
free(shellcmd);
free(cdata);