I have a problem while executing a bash script from C++ using the system call command.
The script catches a SIGPIPE
signal and exit with return code 141
.
This problem has started to appear only in the last release of my code.
My Questions are as follows:
1) That's very hard to answer without knowing exactly what you changed.
2) If a sequence of commands appears in a pipeline, and one of the reading commands finishes before the writer has finished, the writer receives a SIGPIPE signal. So whether you can ignore it depends on whether that is acceptable behavior for your script. More info here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With