Re: [PATCH] Clean up file descriptors when calling hooks.
- From
Junio C Hamano <junkio@cox.net>
- Date
- Dec 8, 2005, 02:25 UTC
- Message-ID
- <7vvey0mik7.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0512072052560.25300@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
> When calling post-update hook, don't leave stdin and stdout connected to > the pushing connection.
A quick question. I understand "not connected to the pushing connection" is desirable, but is there a reason you chose to leave them open to /dev/null, not close()d?