From: Junio C Hamano Date: Mon, 22 Jul 2013 18:23:35 +0000 (-0700) Subject: Merge branch 'tr/protect-low-3-fds' X-Git-Url: https://repo.or.cz/w/git/mingw.git/commitdiff_plain/cb29dfde484e459e4329281151b05ef1c5ad462c Merge branch 'tr/protect-low-3-fds' When "git" is spawned in such a way that any of the low 3 file descriptors is closed, our first open() may yield file descriptor 2, and writing error message to it would screw things up in a big way. * tr/protect-low-3-fds: git: ensure 0/1/2 are open in main() daemon/shell: refactor redirection of 0/1/2 from /dev/null --- cb29dfde484e459e4329281151b05ef1c5ad462c