SHA256
1
0
forked from pool/systemd
Dr. Werner Fink 2014-04-30 15:02:31 +00:00 committed by Git OBS Bridge
parent e3942eb3d1
commit 43ee15b307

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 {