mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:56:57 +00:00
Warn and bork on nested sessions ($TMUX exists).
This commit is contained in:
5
tmux.c
5
tmux.c
@ -1,4 +1,4 @@
|
||||
/* $Id: tmux.c,v 1.30 2007-10-12 12:08:51 nicm Exp $ */
|
||||
/* $Id: tmux.c,v 1.31 2007-10-12 14:46:48 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -210,7 +210,8 @@ main(int argc, char **argv)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (!(cmd->entry->flags & CMD_NOSESSION))
|
||||
if (!(cmd->entry->flags & CMD_NOSESSION) ||
|
||||
(cmd->entry->flags & CMD_CANTNEST))
|
||||
client_fill_sessid(&data.sid, name);
|
||||
if (client_init(path, &cctx, cmd->entry->flags & CMD_STARTSERVER) != 0)
|
||||
exit(1);
|
||||
|
Reference in New Issue
Block a user