Max Nikulin [2023-10-23 23:25:33] wrote: > On 23/10/2023 15:45, Thomas Schmitt wrote: >> - Why no "fork() = " after the lines which show their number for the first >> time ? > https://stackoverflow.com/questions/2530663/printf-anomaly-after-fork > fork clones stdout buffer and child exit flushes its content.
That makes sense: I though it's odd that `fork` would touch those file descriptors (or worse the stdio buffers), but indeed the problem could very well come from `exit`. Stefan