tini message are not flushed from stdout/stderr buffer until it die with the container
Author: CyrilDevOpsCreated Sep 30, 2020Updated Feb 6, 2024
the Spawned child process ... and Main child existed appears at the end of our container logs because they aren't flushed from stdout buffer. after the fprintf \n, an fflush command need to be added to force the buffer to be flushed.
Source: krallin/tini