[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #35753] Completion of error handling
From: |
Eric Blake |
Subject: |
[bug #35753] Completion of error handling |
Date: |
Tue, 10 Dec 2013 17:39:52 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 |
Follow-up Comment #3, bug #35753 (project findutils):
Patch 4 is pointless. We use atexit(close_stdin) for a reason: all reads from
stdin and all writes to stdout/stderr will cause the ferror() flag for the
standard descriptor to be set if there is a failure, and close_stdin will then
guarantee non-zero exit status in that case. The point of the atexit
installation is to avoid the churn of having to check every single fprintf or
other operation on stdout, and instead let the atexit hook take care of it for
us.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35753>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/