3 ms·
But it sounds from the article that write(2) is more complicated than necessary. Why do some errors cause an error return while other errors cause a signal? I w
by Thorrez 6y ago
But it sounds from the article that write(2) is more complicated than necessary. Why do some errors cause an error return while other errors cause a signal? I would think consistency in how errors are propagated would be better.
- Gibbon1 6y agoThe article I remember reading said that to do it right like most other operating systems of the era did requires a lot careful design and work to get it right, so Unix developers punted and left it to the application layer. You get bagged on for saying this but it's just inexcusably shitty. And that's that.
- saagarjha 6y agoA lot of it had to do with code that historically does not check for errors.
- gpderetta 6y agoYou are thinking of "Worse is Better". But the take away of that article, even if the authrs would have preferred otheewise, is that paractical considerations, time to market and ease of implementation beat purity and elegance every time.