- Thread Starter
- #26
No problem from my side. My issue is solved, bottomline: there is no reliable error reporting for writes to a pipe, and the program itself may disappear seemingly at random. The only hint is then a returncode 141 (128 + SIGPIPE). So when a more verbose message is desired, one has to catch SIGPIPE - which is the most simple solution for the problem, and works (maybe somewhat late due to buffering, but the lastest at pclose()).
Lots of more complex approaches are possible, and there are lots of opinions about them. Have fun.
Lots of more complex approaches are possible, and there are lots of opinions about them. Have fun.