2 ms·
And it would actually change the historical and current behavior of exec returning ENOEXEC for 0 bytes executables (see also https://news.ycombinator.com/item?i
by temac 8y ago
And it would actually change the historical and current behavior of exec returning ENOEXEC for 0 bytes executables (see also https://news.ycombinator.com/item?id=19081124 https://news.ycombinator.com/item?id=19081124 ) . So I am changing my mind: a binary true is better. I still prefer truths as small as possible, though :)
- burfog 8y agoIt can be an extra-special 0-byte executable though, running far faster than anything else, like so: /proc/bin/true /proc/bin/false The exec doesn't even need to create page tables or run any non-kernel code. This is a benchmark-winning design.