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/