summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2011-07-30 17:52:32 +0000
committernicm <nicm@openbsd.org>2011-07-30 17:52:32 +0000
commit9ecc64ec0bd96305aefa044b3c40e6f62072884b (patch)
tree2cd6c4a4aee8cfbb3243a56d93203944496e7456
parentWhen using rthreads, the thread that calls exit will be the last one to (diff)
downloadwireguard-openbsd-9ecc64ec0bd96305aefa044b3c40e6f62072884b.tar.xz
wireguard-openbsd-9ecc64ec0bd96305aefa044b3c40e6f62072884b.zip
Do not require a client here, or pipe-pane will not work from the
command line.
-rw-r--r--usr.bin/tmux/cmd-pipe-pane.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-pipe-pane.c b/usr.bin/tmux/cmd-pipe-pane.c
index 405c49ffeb2..6c4c265e005 100644
--- a/usr.bin/tmux/cmd-pipe-pane.c
+++ b/usr.bin/tmux/cmd-pipe-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-pipe-pane.c,v 1.19 2011/03/29 19:30:16 nicm Exp $ */
+/* $OpenBSD: cmd-pipe-pane.c,v 1.20 2011/07/30 17:52:32 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -55,11 +55,9 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
char *command;
int old_fd, pipe_fd[2], null_fd;
- if ((c = cmd_find_client(ctx, NULL)) == NULL)
- return (-1);
-
if (cmd_find_pane(ctx, args_get(args, 't'), NULL, &wp) == NULL)
return (-1);
+ c = cmd_find_client(ctx, NULL);
/* Destroy the old pipe. */
old_fd = wp->pipe_fd;