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:

  1. Why does this sympathy come now and before that it did not happen?
  2. 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

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -