From d87b01fb5034d17ba73d2da58ecfc53e23c31041 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 10 Oct 2013 12:29:35 +0000 Subject: We accidentally haven't been using $TMUX to work out the session for a while and in fact it is less useful that using the client ttyname. So don't bother and don't pass it from the client. If we need it in future it is in c->environ. --- usr.bin/tmux/client.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'usr.bin/tmux/client.c') diff --git a/usr.bin/tmux/client.c b/usr.bin/tmux/client.c index 2887f4bb122..966626af31e 100644 --- a/usr.bin/tmux/client.c +++ b/usr.bin/tmux/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.73 2013/10/10 12:28:08 nicm Exp $ */ +/* $OpenBSD: client.c,v 1.74 2013/10/10 12:29:35 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -280,10 +280,6 @@ client_main(int argc, char **argv, int flags) size += strlen(argv[i]) + 1; data = xmalloc((sizeof *data) + size); - /* Fill in command line arguments. */ - data->pid = environ_pid; - data->session_id = environ_session_id; - /* Prepare command for server. */ data->argc = argc; if (cmd_pack_argv(argc, argv, (char*)(data + 1), size) != 0) { -- cgit v1.2.3-59-g8ed1b