Re: Looking for help to understand external filter driver code
Junio C Hamano <gitster@pobox.com> writes:
Show 5 quoted lines
> The key benefit of this arrangement is the above can be done without
> having to do poll() to flip between reading and writing that is
> needed to avoid deadlocking, which kept the code simpler. A later
> conversion of the write side into async does not fundamentally
> change anything from the original arrangement.
Translation: I was too lazy to worry about doing poll()/select()
when I did it originally. As long as you can do so correctly, be my
guest to reduce one process by having the main process do both
reading and writing.
;-)