Bug 436368
Summary: | Double close in dd | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ulrich Drepper <drepper> |
Component: | coreutils | Assignee: | Ondrej Vasik <ovasik> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | meyering, twaugh |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-03-11 12:55:49 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Ulrich Drepper
2008-03-06 20:03:54 UTC
Thanks for report. Caused by atexit(close_stdout). This atexit close is (from comments) because of possible exit in external function for parsing long options. Second one is in cleanup function (from comments) necessary for call from signal handler. Maybe the easiest solution would be to differ between signal handling cleanup and exit/quit cleanup (two functions or boolean for decision)... Any other ideas? Thanks for the report. For the record, there was no harm in that double close, other than the negligible overhead of the failing close syscall. In spite of that, I've changed dd.c to avoid the unnecessary close_stdout call when possible: http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/12901 Built as coreutils-6.10-12.fc9 , closing RAWHIDE. |