version 1.149, 2015/11/18 14:27:44 |
version 1.150, 2015/11/24 23:46:16 |
|
|
struct termios *tio, char **cause) |
struct termios *tio, char **cause) |
{ |
{ |
struct winsize ws; |
struct winsize ws; |
char *argv0, *cmd, **argvp, paneid[16]; |
char *argv0, *cmd, **argvp; |
const char *ptr, *first, *home; |
const char *ptr, *first, *home; |
struct termios tio2; |
struct termios tio2; |
int i; |
int i; |
|
|
closefrom(STDERR_FILENO + 1); |
closefrom(STDERR_FILENO + 1); |
|
|
if (path != NULL) |
if (path != NULL) |
environ_set(env, "PATH", path); |
environ_set(env, "PATH", "%s", path); |
xsnprintf(paneid, sizeof paneid, "%%%u", wp->id); |
environ_set(env, "TMUX_PANE", "%%%u", wp->id); |
environ_set(env, "TMUX_PANE", paneid); |
|
environ_push(env); |
environ_push(env); |
|
|
clear_signals(1); |
clear_signals(1); |