summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-11-30 13:37:45 +0000
committernicm <nicm@openbsd.org>2020-11-30 13:37:45 +0000
commit70449ab24c7915412df1e6eba61fbca4a1cb87af (patch)
treeecf28f88b4a8bd471e96defa712bd45fe5c3d232
parentIgnore comments at the end of config lines in ssh_config, similar to what (diff)
downloadwireguard-openbsd-70449ab24c7915412df1e6eba61fbca4a1cb87af.tar.xz
wireguard-openbsd-70449ab24c7915412df1e6eba61fbca4a1cb87af.zip
Ignore running command when checking for no-hooks flag if it is blocked.
GitHub issue 2483.
-rw-r--r--usr.bin/tmux/cmd-queue.c8
-rw-r--r--usr.bin/tmux/tmux.17
2 files changed, 10 insertions, 5 deletions
diff --git a/usr.bin/tmux/cmd-queue.c b/usr.bin/tmux/cmd-queue.c
index b955918b98a..1aca7393cd7 100644
--- a/usr.bin/tmux/cmd-queue.c
+++ b/usr.bin/tmux/cmd-queue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-queue.c,v 1.99 2020/07/27 08:03:10 nicm Exp $ */
+/* $OpenBSD: cmd-queue.c,v 1.100 2020/11/30 13:37:45 nicm Exp $ */
/*
* Copyright (c) 2013 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -768,7 +768,11 @@ cmdq_running(struct client *c)
{
struct cmdq_list *queue = cmdq_get(c);
- return (queue->item);
+ if (queue->item == NULL)
+ return (NULL);
+ if (queue->item->flags & CMDQ_WAITING)
+ return (NULL);
+ return (queue->item);
}
/* Print a guard line. */
diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1
index e14a73775ca..c892690884e 100644
--- a/usr.bin/tmux/tmux.1
+++ b/usr.bin/tmux/tmux.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tmux.1,v 1.804 2020/11/26 09:19:10 nicm Exp $
+.\" $OpenBSD: tmux.1,v 1.805 2020/11/30 13:37:45 nicm Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
.\"
@@ -14,7 +14,7 @@
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: November 26 2020 $
+.Dd $Mdocdate: November 30 2020 $
.Dt TMUX 1
.Os
.Sh NAME
@@ -2112,7 +2112,8 @@ and
.Ic display-panes-active-colour
session options.
The indicator is closed when a key is pressed (unless
-.Fl N is given) or
+.Fl N
+is given) or
.Ar duration
milliseconds have passed.
If