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

@ -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);