chiark / gitweb /
terminal-util: when making /dev/null or the console stdio, forget cached terminal...
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Feb 2018 22:50:26 +0000 (23:50 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:58:55 +0000 (07:58 +0200)
commita196bddea6fdd8af585a6346b9cd4cc9a6d37ac7
tree40147524c6bc81cb5361c399f04ef65805390787
parenta7a146bb7e5502c491055687248d914a9c1f8125
terminal-util: when making /dev/null or the console stdio, forget cached terminal features

Let's forget all relevant terminal features we learnt when we make a
console or /dev/null stdin/stdout/stderr.

Also, while we are at it, let's drop the various _unlikely_ and
_likely_ annotiations around the terminal feature caches. In many cases
we call the relevant functions only once in which cases the annotations
are likely to do just harm and no good. After all we can't know if the
specific code will call us just once or many times...
src/basic/terminal-util.c
src/basic/terminal-util.h