[Freemint-list] Handling of PRGs/APPs which console output

Thorsten Otto admin at tho-otto.de
Fri Jan 6 13:44:24 MSK 2017


On Thursday 05 January 2017 21:29:44 Pierre TON-THAT wrote:
> - some debug lines can be forgotten.

Then thats a bug in the program.

> - some librairies do

Thats a bug in the library, and also in the program. Yes i know there are 
quite some libraries that behave these way, especially when ported from unix. 
I still consider that a bug in the library. You will have problems with this 
on unix too, if the application is not aware of it: if you run a X program 
with stderr closed (by using 2>&-), then it is very likely that the X 
connection gets assigned to fd 2 because it is usually the first thing that is 
opened. If some library then prints debug messages to stderr, that goes down 
to the X-server. Not very good.

It's also a bug in the application, because you can easily avoid that by 
forcing stderr to /dev/null if you know you use some library of this kind.

>- messages are also written when the A: as SD-card is mounted.
>This is not APP, it's directly MiNT

Then thats a bug in MinT and should be fixed.


More information about the Freemint-list mailing list