mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 03:08:46 +00:00
Do not require that there be no other clients before loading the config,
being the first client is enough. GitHub issue 2438.
This commit is contained in:
parent
31ed29e551
commit
b33a302235
@ -2243,7 +2243,7 @@ server_client_dispatch_identify(struct client *c, struct imsg *imsg)
|
||||
c->name = name;
|
||||
log_debug("client %p name is %s", c, c->name);
|
||||
|
||||
if (c->flags & CLIENT_CONTROL)
|
||||
if (c->flags & CLIENT_CONTROL)
|
||||
control_start(c);
|
||||
else if (c->fd != -1) {
|
||||
if (tty_init(&c->tty, c) != 0) {
|
||||
@ -2258,13 +2258,13 @@ server_client_dispatch_identify(struct client *c, struct imsg *imsg)
|
||||
}
|
||||
|
||||
/*
|
||||
* If this is the first client that has finished identifying, load
|
||||
* configuration files.
|
||||
* If this is the first client, load configuration files. Any later
|
||||
* clients are allowed to continue with their command even if the
|
||||
* config has not been loaded - they might have been run from inside it
|
||||
*/
|
||||
if ((~c->flags & CLIENT_EXIT) &&
|
||||
!cfg_finished &&
|
||||
c == TAILQ_FIRST(&clients) &&
|
||||
TAILQ_NEXT(c, entry) == NULL)
|
||||
!cfg_finished &&
|
||||
c == TAILQ_FIRST(&clients))
|
||||
start_cfg();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user