Why exit_group flushes output buffer? – Debian
From the manual page I know that: exit() flushes output buffers while _exit,_Exit,exit_group don't. In the code below, the content of test.log will be hellonhellon only if exit() was called in child process, which is the same as I tested.…