mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Merge branch 'obsd-master'
Conflicts: log.c proc.c tmux.c
This commit is contained in:
11
server-fn.c
11
server-fn.c
@ -32,20 +32,19 @@ void server_callback_identify(int, short, void *);
|
||||
void
|
||||
server_fill_environ(struct session *s, struct environ *env)
|
||||
{
|
||||
char var[PATH_MAX], *term;
|
||||
u_int idx;
|
||||
long pid;
|
||||
char *term;
|
||||
u_int idx;
|
||||
long pid;
|
||||
|
||||
if (s != NULL) {
|
||||
term = options_get_string(global_options, "default-terminal");
|
||||
environ_set(env, "TERM", term);
|
||||
environ_set(env, "TERM", "%s", term);
|
||||
|
||||
idx = s->id;
|
||||
} else
|
||||
idx = (u_int)-1;
|
||||
pid = getpid();
|
||||
xsnprintf(var, sizeof var, "%s,%ld,%u", socket_path, pid, idx);
|
||||
environ_set(env, "TMUX", var);
|
||||
environ_set(env, "TMUX", "%s,%ld,%u", socket_path, pid, idx);
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user