compat/terminal: separate input and output handles
commit67fe7356538c714da9da6061abe99209452260d7
authorErik Faye-Lund <kusmabite@gmail.com>
Tue, 4 Dec 2012 08:10:40 +0000 (4 09:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 4 Dec 2012 16:02:55 +0000 (4 08:02 -0800)
tree74a0af6ba25cbf240653f8a72cc77348f12b337b
parent9df92e6369138764ce7bd44edbb307d98e9d72fd
compat/terminal: separate input and output handles

On Windows, the terminal cannot be opened in read-write mode, so
we need distinct pairs for reading and writing. Since this works
fine on other platforms as well, always open them in pairs.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/terminal.c