In principle, the only โinterestingโ error is EINVAL , which in most programs will only happen due to memory corruption or, as I know because of my own painful experience, during program shutdown after the destructors have already destroyed some mutexes. The way I see it, the only reasonable answer to such an error is to interrupt the program, which, on the other hand, is very inconvenient if errors occur precisely because the program is already closing. Of course, this can be solved, but it is not so simple and not so much for him for most programs.
Ringding
source share