mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
98671ebec2
commit
7a107b7dbd
@ -126,10 +126,10 @@ bool StreamLogger::IsTty(std::ostream& stream)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
/* Eww... */
|
||||
if (stream == std::cout)
|
||||
if (&stream == &std::cout)
|
||||
return isatty(fileno(stdout));
|
||||
|
||||
if (stream == std::cerr)
|
||||
if (&stream == &std::cerr)
|
||||
return isatty(fileno(stderr));
|
||||
#endif /*_ WIN32 */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user