summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-run-shell.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-03-19 13:43:19 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-03-19 13:43:19 +0000
commitb8df455dc0e8021021a72f362b4bc52a480aea0a (patch)
tree9ffbe322482be3b8c4d22ea6d3f99cbbc0daf468 /usr.bin/tmux/cmd-run-shell.c
parenta376b359fe671242360ee34bb8daf4b481df8fee (diff)
Add a flag to run a background process in a pty as well, not used for
anything yet.
Diffstat (limited to 'usr.bin/tmux/cmd-run-shell.c')
-rw-r--r--usr.bin/tmux/cmd-run-shell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-run-shell.c b/usr.bin/tmux/cmd-run-shell.c
index f4e8b8e6fab..65dac3d6d4d 100644
--- a/usr.bin/tmux/cmd-run-shell.c
+++ b/usr.bin/tmux/cmd-run-shell.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-run-shell.c,v 1.61 2020/03/13 06:19:33 nicm Exp $ */
+/* $OpenBSD: cmd-run-shell.c,v 1.62 2020/03/19 13:43:18 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -145,8 +145,8 @@ cmd_run_shell_timer(__unused int fd, __unused short events, void* arg)
if (cdata->cmd != NULL) {
if (job_run(cdata->cmd, cdata->s, cdata->cwd, NULL,
- cmd_run_shell_callback, cmd_run_shell_free, cdata,
- 0) == NULL)
+ cmd_run_shell_callback, cmd_run_shell_free, cdata, 0, -1,
+ -1) == NULL)
cmd_run_shell_free(cdata);
} else {
if (cdata->item != NULL)