#68 Fixed console output in docker containers.

This commit is contained in:
XMRig 2017-08-22 11:16:33 +03:00
parent 7b44fa3737
commit 4e039a9bce
2 changed files with 8 additions and 3 deletions

View file

@ -133,7 +133,12 @@ void ConsoleLog::text(const char* fmt, va_list args)
bool ConsoleLog::isWritable() const
{
return uv_is_writable(reinterpret_cast<const uv_stream_t*>(&m_tty)) == 1 && uv_guess_handle(1) == UV_TTY;
if (uv_is_writable(reinterpret_cast<const uv_stream_t*>(&m_tty)) != 1) {
return false;
}
const uv_handle_type type = uv_guess_handle(1);
return type == UV_TTY || type == UV_NAMED_PIPE;
}

View file

@ -27,14 +27,14 @@
#define APP_ID "xmrig"
#define APP_NAME "XMRig"
#define APP_DESC "XMRig CPU miner"
#define APP_VERSION "2.3.0"
#define APP_VERSION "2.3.1-dev"
#define APP_DOMAIN "xmrig.com"
#define APP_SITE "www.xmrig.com"
#define APP_COPYRIGHT "Copyright (C) 2016-2017 xmrig.com"
#define APP_VER_MAJOR 2
#define APP_VER_MINOR 3
#define APP_VER_BUILD 0
#define APP_VER_BUILD 1
#define APP_VER_REV 0
#ifdef _MSC_VER