Am Montag, den 08.06.2020, 11:39 +0000 schrieb Joakim Tjernlund: > Most terminal programs I use tries to empty the read queue after open, just to avoid > old garbage så I don't see a problem here. It it up to the terminal app. > Maybe one could use O_DIRECT for this purpose ? Well, we can throw away stuff received until some time in open(2). But you can always have stuff in the buffer when open(2) returns. User space needs to be ready to deal with stuff in the buffer. Regards Oliver