by Sesse__ · 2y ago · 0 comments
In theory, the compiler could know that since `printf` is a well-known standard function. In practice, `printf` might even exit the program via SIGPIPE, so I don't think any compiler will assume that it definitely will return.
Not just sigpipe. Getting sigttou is part and parcel of how command line apps share control of the tty.