Re: [PATCH] Fix race and deadlock when sending pack
- From
- Paul Serice <paul@serice.net>
- Date
- Dec 19, 2005, 17:29 UTC
- Message-ID
- <43A6EE06.8040108@serice.net>
- In-Reply-To
- <Pine.LNX.4.64.0512190130450.25300@iabervon.org>
> If, for some reason, a hook looked at stdin, it could get surprising > results.
In the first patch, the hook would hang waiting for input. That was a bug. In the second patch, the hook's standard input has been closed by git-send-pack (which is the standard thing for the parent to do in a pipeline), thus if a hook looks at stdin it will get EOF (the same as if connected to /dev/null).
Paul