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

@ -3240,7 +3240,7 @@ window_copy_copy_buffer(struct window_mode_entry *wme, const char *prefix,
static void
window_copy_copy_pipe(struct window_mode_entry *wme, struct session *s,
const char *prefix, const char *command)
const char *prefix, const char *cmd)
{
void *buf;
size_t len;
@ -3250,7 +3250,7 @@ window_copy_copy_pipe(struct window_mode_entry *wme, struct session *s,
if (buf == NULL)
return;
job = job_run(command, s, NULL, NULL, NULL, NULL, NULL, JOB_NOWAIT);
job = job_run(cmd, s, NULL, NULL, NULL, NULL, NULL, JOB_NOWAIT, -1, -1);
bufferevent_write(job_get_event(job), buf, len);
window_copy_copy_buffer(wme, prefix, buf, len);
}