Return to cmd-respawn-window.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.14, 2011/07/04 13:35:37 | version 1.15, 2012/07/10 11:53:01 | ||
---|---|---|---|
|
|
||
#include <sys/types.h> | #include <sys/types.h> | ||
#include <stdlib.h> | |||
#include <unistd.h> | #include <unistd.h> | ||
#include "tmux.h" | #include "tmux.h" | ||
|
|
||
cmd = NULL; | cmd = NULL; | ||
if (window_pane_spawn(wp, cmd, NULL, NULL, &env, s->tio, &cause) != 0) { | if (window_pane_spawn(wp, cmd, NULL, NULL, &env, s->tio, &cause) != 0) { | ||
ctx->error(ctx, "respawn window failed: %s", cause); | ctx->error(ctx, "respawn window failed: %s", cause); | ||
xfree(cause); | free(cause); | ||
environ_free(&env); | environ_free(&env); | ||
server_destroy_pane(wp); | server_destroy_pane(wp); | ||
return (-1); | return (-1); |