Start tmate after the config files are processed

Closes #50
This commit is contained in:
Nicolas Viennot 2015-01-30 12:08:13 -05:00
parent a1c9d8784f
commit e203bff96e
2 changed files with 4 additions and 1 deletions

3
cfg.c
View File

@ -26,6 +26,7 @@
#include <string.h>
#include "tmux.h"
#include "tmate.h"
struct cmd_q *cfg_cmd_q;
int cfg_finished;
@ -122,6 +123,8 @@ cfg_default_done(unused struct cmd_q *cmdq)
return;
cfg_finished = 1;
tmate_session_start();
if (!RB_EMPTY(&sessions))
cfg_show_causes(RB_MIN(sessions, &sessions));

View File

@ -205,7 +205,7 @@ server_start(int lockfd, char *lockfile)
set_signals(server_signal_callback);
tmate_session_start();
/* tmate_session_start() is called in cfg_default_done */
server_loop();
exit(0);
}