Re: [PATCH 1/2] git-svn, perl/Git.pm: add central method for prompting passwords honoring GIT_ASKPASS and SSH_ASKPASS
- From
- Sven Strickroth <sven.strickroth@tu-clausthal.de>
- Date
- Dec 28, 2011, 16:17 UTC
- Message-ID
- <4EFB4108.5040704@tu-clausthal.de>
- In-Reply-To
- <7vboqt2zm4.fsf@alter.siamese.dyndns.org>
Am 28.12.2011 03:34 schrieb Junio C Hamano:
Show 10 quoted lines
>> + close ($fh); > > It seems that we aquired a SP after "close" compared to the > original. What's the prevailing coding style in our Perl code? > > This close() of pipe to the subprocess is where a lot of error checking > happens, no? Can this return an error? > > I can see the original ignored an error condition, but do we care, or not > care?
close() can return a number in case of an error, but we already got our response/line, so why care?
-- Best regards, Sven Strickroth ClamAV, a GPL anti-virus toolkit http://www.clamav.net PGP key id F5A9D4C4 @ any key-server