Use single should_exit flag.

This commit is contained in:
Martin Pulec
2016-03-07 11:11:47 +01:00
parent 9da86ec5fd
commit 0f40ee2012
10 changed files with 10 additions and 24 deletions

View File

@@ -49,7 +49,7 @@ int uv_argc;
char **uv_argv;
char *export_dir = NULL;
volatile bool should_exit_receiver = false;
volatile bool should_exit = false;
volatile int log_level = LOG_LEVEL_INFO;
bool color_term = (getenv("TERM") && set<string>{"linux", "screen", "xterm", "xterm-256color"}.count(getenv("TERM")) > 0) && isatty(1) && isatty(2);