1
0
mirror of https://github.com/git/git.git synced 2024-09-30 11:21:24 +02:00
git/compat
Johannes Sixt 3e34d66577 Windows: simplify the pipe(2) implementation
Our implementation of pipe() must create non-inheritable handles for the
reason that when a child process is started, there is no opportunity to
close the unneeded pipe ends in the child (on POSIX this is done between
fork() and exec()).

Previously, we used the _pipe() function provided by Microsoft's C runtime
(which creates inheritable handles) and then turned the handles into
non-inheritable handles using the DuplicateHandle() API.

Simplify the procedure by using the CreatePipe() API, which can create
non-inheritable handles right from the beginning.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2010-01-16 16:43:52 -08:00
..
fnmatch
nedmalloc
regex
vcbuild Merge branch 'ef/msys-imap' 2009-11-17 22:03:00 -08:00
basename.c
bswap.h Explicitly truncate bswap operand to uint32_t 2009-11-25 00:16:38 -08:00
cygwin.c
cygwin.h
fopen.c
hstrerror.c
inet_ntop.c
inet_pton.c
memmem.c
mingw.c Windows: simplify the pipe(2) implementation 2010-01-16 16:43:52 -08:00
mingw.h Enable support for IPv6 on MinGW 2009-11-24 00:58:17 -08:00
mkdtemp.c
mkstemps.c
mmap.c
msvc.c
msvc.h
pread.c
qsort.c
setenv.c
snprintf.c
strcasestr.c
strlcpy.c
strtoumax.c
unsetenv.c
win32.h
win32mmap.c MSVC: Add support for building with NO_MMAP 2009-11-08 17:59:12 -08:00
winansi.c