/* All credits to https://lists.gnu.org/archive/html/bug-coreutils/2008-11/msg00138.html * Cf. also http://www.pixelbeat.org/programming/stdio_buffering/ * http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=blob;f=src/stdbuf.c;h=2500c300147f30aa5d2d99fd29b5865637a11290;hb=HEAD */ #include __attribute__ ((constructor)) void cah9mion4ocim6ip () { setvbuf (stdout, NULL, _IOLBF, 0); }