summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-06-07 23:42:25 +0100
committerThomas Adam <thomas@xteddy.org>2015-06-07 23:42:25 +0100
commit7acc4addb51c711afed3761302c2d3457125445c (patch)
tree03cca6f3242974dba6adc2c1d1b721a595d24a37 /client.c
parenta5c55e439383202547e442f6afc0c8c664687728 (diff)
parentc4e811e51936edab66803a7b9e099ac135e6e19b (diff)
Merge branch 'obsd-master'
Conflicts: client.c tmux.1 tmux.c
Diffstat (limited to 'client.c')
-rw-r--r--client.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/client.c b/client.c
index f3fdecaf..7d997a7e 100644
--- a/client.c
+++ b/client.c
@@ -222,7 +222,7 @@ client_main(int argc, char **argv, int flags)
cmdflags = CMD_STARTSERVER;
} else if (argc == 0) {
msg = MSG_COMMAND;
- cmdflags = CMD_STARTSERVER|CMD_CANTNEST;
+ cmdflags = CMD_STARTSERVER;
} else {
msg = MSG_COMMAND;
@@ -240,24 +240,10 @@ client_main(int argc, char **argv, int flags)
TAILQ_FOREACH(cmd, &cmdlist->list, qentry) {
if (cmd->entry->flags & CMD_STARTSERVER)
cmdflags |= CMD_STARTSERVER;
- if (cmd->entry->flags & CMD_CANTNEST)
- cmdflags |= CMD_CANTNEST;
}
cmd_list_free(cmdlist);
}
- /*
- * Check if this could be a nested session, if the command can't nest:
- * if the socket path matches $TMUX, this is probably the same server.
- */
- if (shell_cmd == NULL && environ_path != NULL &&
- (cmdflags & CMD_CANTNEST) &&
- strcmp(socket_path, environ_path) == 0) {
- fprintf(stderr, "sessions should be nested with care, "
- "unset $TMUX to force\n");
- return (1);
- }
-
/* Establish signal handlers. */
set_signals(client_signal);