Merge branch 'tr/protect-low-3-fds'
authorJunio C Hamano <gitster@pobox.com>
Mon, 22 Jul 2013 18:23:35 +0000 (22 11:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Jul 2013 18:23:35 +0000 (22 11:23 -0700)
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

1  2 
cache.h
daemon.c
git.c
setup.c
shell.c

diff --cc cache.h
Simple merge
diff --cc daemon.c
Simple merge
diff --cc git.c
Simple merge
diff --cc setup.c
Simple merge
diff --cc shell.c
Simple merge