-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
man.sh: revert trapping SIGPIPE #1283
Conversation
Confirm this addresses the issue I reported in PR279542 |
There are other ways to solve this problem (you could |
Yeah, I'm not sure either -- I'll defer to @wosch for comment. |
Confirm that this doesn't reintroduce core dumping on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the main purpose of the default action of SIGPIPE
appears to be to terminate processes writing output that is no longer useful, without generating error messages.
Together with set -o pipefail
this can still cause non-zero exit statuses, but I don't think this is an issue in this script.
The script itself does not commonly write to a closed pipe and non-empty trap actions are turned into the default action in child processes, so |
Thanks @jillest! |
PR: 279542 Fixes: 14a5c10 Reported by: emaste Reviewed by: imp, emaste, jilles Pull Request: freebsd#1283
PR: 279542 Fixes: 14a5c10 Reported by: emaste Reviewed by: imp, emaste, jilles Pull Request: freebsd/freebsd-src#1283
You teach me a lot with fun puzzles. That really adds a lot to my quality of life. Thanks yet again @emaste!