summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-run-shell.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-03-19 13:43:18 +0000
committernicm <nicm@openbsd.org>2020-03-19 13:43:18 +0000
commita6396ca2109ffade1059ac1e2c36239f4e588edc (patch)
treeaf83ae5d23b3e7f8c4d4d398b8f72f10e340a189 /usr.bin/tmux/cmd-run-shell.c
parentAdd C position for terminal centre with display-menu -x and -y. (diff)
downloadwireguard-openbsd-a6396ca2109ffade1059ac1e2c36239f4e588edc.tar.xz
wireguard-openbsd-a6396ca2109ffade1059ac1e2c36239f4e588edc.zip
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)