Dr. Werner Fink 2014-04-30 15:02:31 +00:00 committed by Git OBS Bridge
parent 63498a9e97
commit d07503cb51

View File

@ -67,7 +67,7 @@
assert(j);
+ if (_unlikely_(is_ansi_console < 0)) {
+ int fd = open_terminal("/dev/console", O_WRONLY|O_NOCTTY|O_CLOEXEC);
+ int fd = open_terminal("/dev/console", O_RDONLY|O_NOCTTY|O_CLOEXEC);
+ if (fd < 0)
+ is_ansi_console = 0;
+ else {