]> git.ipfire.org Git - thirdparty/systemd.git/commit
terminal-util: add recognizable error if cols/rows of tty are initially not initialized
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Jul 2024 15:45:26 +0000 (17:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 19 Jul 2024 09:44:04 +0000 (11:44 +0200)
commit0ea4198f0a9ef4aa2226b437bfa6e9a741ea99b0
tree837dc358c86600e8850497460235556070a2a160
parentad2fa21f833dff9eb81f8febb6bfceeaefa9326e
terminal-util: add recognizable error if cols/rows of tty are initially not initialized

Various tty types come up with cols/rows not initialized (i.e. set to
zero). Let's detect these cases, and return a better error than EIO,
simply to make things easier to debug.
src/basic/terminal-util.c