Skip to content

Comment on Opening /proc/self/fd/1 is not the same as dup(1)parent

Comments

We shall open the Tanenbaum, now in its fifth edition circa 2023, no doubt still taught to students all over the world:

Processes are created in Linux in an especially simple manner. The fork system call creates an exact copy of the original process.
The Linux sequence of clone plus exec is yet more orthogonal, since even more fine-grained building blocks are available. As a general rule, having a small number of orthogonal elements that can be combined in many ways leads to a small, simple, and elegant system.

Yup, still the same bullshit. It is not elegant, it is not fine-grained, it is not simple, it is certainly not small.

That book is decades old. New editions rarely change this type of fluff.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.