diff options
author | 2013-03-25 11:43:01 +0000 | |
---|---|---|
committer | 2013-03-25 11:43:01 +0000 | |
commit | 97a3b7e250ea7b22aa385a1b315b71fa7341d13c (patch) | |
tree | 86abfaa74a0dcdae8d8da38df56e3d9132166ef9 /usr.bin/tmux/cmd-if-shell.c | |
parent | Handle empty pending output (not a failure) and add \n. From George (diff) | |
download | wireguard-openbsd-97a3b7e250ea7b22aa385a1b315b71fa7341d13c.tar.xz wireguard-openbsd-97a3b7e250ea7b22aa385a1b315b71fa7341d13c.zip |
Extend jobs to support writing and use that for copy-pipe instead of
popen, from Chris Johnsen.
Diffstat (limited to 'usr.bin/tmux/cmd-if-shell.c')
-rw-r--r-- | usr.bin/tmux/cmd-if-shell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-if-shell.c b/usr.bin/tmux/cmd-if-shell.c index a5f23df285b..01a5d974349 100644 --- a/usr.bin/tmux/cmd-if-shell.c +++ b/usr.bin/tmux/cmd-if-shell.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-if-shell.c,v 1.21 2013/03/25 11:36:42 nicm Exp $ */ +/* $OpenBSD: cmd-if-shell.c,v 1.22 2013/03/25 11:43:01 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -89,7 +89,7 @@ cmd_if_shell_exec(struct cmd *self, struct cmd_q *cmdq) cdata->cmdq = cmdq; cmdq->references++; - job_run(shellcmd, cmd_if_shell_callback, cmd_if_shell_free, cdata); + job_run(shellcmd, s, cmd_if_shell_callback, cmd_if_shell_free, cdata); free(shellcmd); if (cdata->bflag) |