From e8273a993ec79a58ffff16eba17d0551c690c4db Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 19 Mar 2020 13:43:18 +0000 Subject: Add a flag to run a background process in a pty as well, not used for anything yet. --- cmd-if-shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd-if-shell.c') 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); -- cgit