Event base does not need to be global.

This commit is contained in:
nicm
2015-08-30 22:19:07 +00:00
parent b87dc608d9
commit dd92b6e83d
4 changed files with 10 additions and 14 deletions

5
tmux.c
View File

@ -41,8 +41,6 @@ struct options global_s_options; /* session options */
struct options global_w_options; /* window options */
struct environ global_environ;
struct event_base *ev_base;
char *cfg_file;
char *shell_cmd;
int debug_level;
@ -386,6 +384,5 @@ main(int argc, char **argv)
setproctitle("%s (%s)", __progname, socket_path);
/* Pass control to the client. */
ev_base = event_init();
exit(client_main(argc, argv, flags));
exit(client_main(event_init(), argc, argv, flags));
}