c++ - Is it recommended to trap SIGPIPE in bash script? -
I have a problem while executing a script from C ++ using the system call command in the script SIGPIPE < / Code> signals and returns with exit code
141
.
This problem is only visible in the last release of my code.
My question is as follows:
- Why does this sympathy come now and before that it did not happen?
- Is it safe to ignore SIGPIPE and what are the outcomes?
1) It is not at all obvious that to answer the changes you made It is very difficult to
2) If a sequence of orders appears in a pipeline, and before the completion of the author a reading order is completed, the author receives a signal CPI signal. So you can ignore it, it depends on whether it is acceptable behavior for your script or not. More info
Comments
Post a Comment