diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-03-09 17:02:39 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-03-09 17:02:39 +0000 |
commit | d5cffd6633270052181503e5a2e5b9a10bde251e (patch) | |
tree | bd7078d4d59758517ea0a0020fcbaa848244bd47 /usr.bin/tmux/server-fn.c | |
parent | 802e114586ecfa21a8e416ab735849b32b6beeeb (diff) |
Move server_fill_environ into environ.c and move some other common code
into it.
Diffstat (limited to 'usr.bin/tmux/server-fn.c')
-rw-r--r-- | usr.bin/tmux/server-fn.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/usr.bin/tmux/server-fn.c b/usr.bin/tmux/server-fn.c index f769019f47c..f5957119c8f 100644 --- a/usr.bin/tmux/server-fn.c +++ b/usr.bin/tmux/server-fn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-fn.c,v 1.104 2017/02/09 15:04:53 nicm Exp $ */ +/* $OpenBSD: server-fn.c,v 1.105 2017/03/09 17:02:38 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -33,24 +33,6 @@ static void server_callback_identify(int, short, void *); static void server_destroy_session_group(struct session *); void -server_fill_environ(struct session *s, struct environ *env) -{ - const char *term; - u_int idx; - long pid; - - if (s != NULL) { - term = options_get_string(global_options, "default-terminal"); - environ_set(env, "TERM", "%s", term); - - idx = s->id; - } else - idx = (u_int)-1; - pid = getpid(); - environ_set(env, "TMUX", "%s,%ld,%u", socket_path, pid, idx); -} - -void server_redraw_client(struct client *c) { c->flags |= CLIENT_REDRAW; |