I have a fprintf call which blocked for about unreasonable 10 seconds when the system is IO busy but still has lots of CPU. I neither setvbuf of the underlying stream ...
I want a minimal o-damn-malloc-just-failed handler, which writes some info to a file (probably just standard error). I would prefer to use fprintf() rather than write(), but this will fail ...