summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-run-shell.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2021-03-02 10:56:45 +0000
committernicm <nicm@openbsd.org>2021-03-02 10:56:45 +0000
commit309e64039e3e18962adf4f1dc88c631caae428a2 (patch)
tree797312e13a30f8f04701367458af6af6afdb847c /usr.bin/tmux/cmd-run-shell.c
parentFix the deadlock between uvn_io() and uvn_flush() by restarting the fault. (diff)
downloadwireguard-openbsd-309e64039e3e18962adf4f1dc88c631caae428a2.tar.xz
wireguard-openbsd-309e64039e3e18962adf4f1dc88c631caae428a2.zip
Drop support for popups where the content is provided directly to tmux
(which does not have many practical uses) and only support running a program in the popup. display-popup is now simpler and can accept multiple arguments to avoid escaping problems (like the other commands).
Diffstat (limited to 'usr.bin/tmux/cmd-run-shell.c')
-rw-r--r--usr.bin/tmux/cmd-run-shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-run-shell.c b/usr.bin/tmux/cmd-run-shell.c
index 053cd6bf49b..5a30b93be78 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.70 2021/01/01 08:36:51 nicm Exp $ */
+/* $OpenBSD: cmd-run-shell.c,v 1.71 2021/03/02 10:56:45 nicm Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -174,7 +174,7 @@ cmd_run_shell_timer(__unused int fd, __unused short events, void* arg)
enum cmd_parse_status status;
if (cmd != NULL && cdata->shell) {
- if (job_run(cmd, cdata->s, cdata->cwd, NULL,
+ if (job_run(cmd, 0, NULL, cdata->s, cdata->cwd, NULL,
cmd_run_shell_callback, cmd_run_shell_free, cdata,
cdata->flags, -1, -1) == NULL)
cmd_run_shell_free(cdata);