3 Dec
2013
3 Dec
'13
9:18 p.m.
On Tue, Dec 03, 2013 at 06:22:56PM +0000, Mark Brown wrote:
You can't safely do most of this such as calling fclose() from within a signal handler, the set of functions that are guaranteed safe is quite limited - see signal(7).
I should also have mentioned that it looks like you're probably looking for setvbuf() with _IONBF.