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

@ -354,7 +354,7 @@ format_job_get(struct format_tree *ft, const char *cmd)
if (force || (fj->job == NULL && fj->last != t)) {
fj->job = job_run(expanded, NULL,
server_client_get_cwd(ft->client, NULL), format_job_update,
format_job_complete, NULL, fj, JOB_NOWAIT);
format_job_complete, NULL, fj, JOB_NOWAIT, -1, -1);
if (fj->job == NULL) {
free(fj->out);
xasprintf(&fj->out, "<'%s' didn't start>", fj->cmd);