version 1.1, 2009/10/11 10:04:27 |
version 1.2, 2009/10/21 18:12:31 |
|
|
cmd_pipe_pane_exec(struct cmd *self, struct cmd_ctx *ctx) |
cmd_pipe_pane_exec(struct cmd *self, struct cmd_ctx *ctx) |
{ |
{ |
struct cmd_target_data *data = self->data; |
struct cmd_target_data *data = self->data; |
struct winlink *wl; |
|
struct window_pane *wp; |
struct window_pane *wp; |
int old_fd, pipe_fd[2], null_fd, mode; |
int old_fd, pipe_fd[2], null_fd, mode; |
|
|
if ((wl = cmd_find_pane(ctx, data->target, NULL, &wp)) == NULL) |
if (cmd_find_pane(ctx, data->target, NULL, &wp) == NULL) |
return (-1); |
return (-1); |
|
|
/* Destroy the old pipe. */ |
/* Destroy the old pipe. */ |