forked from pool/systemd
.
OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=613
This commit is contained in:
parent
e40cfb30ad
commit
78564874d6
@ -67,7 +67,7 @@
|
|||||||
assert(j);
|
assert(j);
|
||||||
|
|
||||||
+ if (_unlikely_(is_ansi_console < 0)) {
|
+ 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)
|
+ if (fd < 0)
|
||||||
+ is_ansi_console = 0;
|
+ is_ansi_console = 0;
|
||||||
+ else {
|
+ else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user