1
0
mirror of https://github.com/git/git.git synced 2024-10-20 22:48:24 +02:00
git/compat
Erik Faye-Lund 52de4db579 mingw: use real pid
The Windows port have so far been using process handles in place
of PID. However, this is not work consistent with what getpid
returns.

PIDs are system-global identifiers, but process handles are local
to a process. Using PIDs instead of process handles allows, for
instance, a user to kill a hung process with the Task Manager,
something that would have been impossible with process handles.

Change the code to use the real PID, and use OpenProcess to get a
process-handle. Store the PID and the process handle in a linked
list protected by a critical section, so we can safely close the
process handle later.

Linked list code written by Pat Thoyts.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2010-11-04 16:53:50 -07:00
..
fnmatch
nedmalloc Typos in code comments, an error message, documentation 2010-08-22 13:25:08 -07:00
regex Fix compat/regex ANSIfication on MinGW 2010-08-26 09:25:53 -07:00
vcbuild Merge branch 'maint-1.6.6' into maint 2010-04-19 01:28:27 -07:00
win32 mingw: implement syslog 2010-11-04 16:53:49 -07:00
basename.c
bswap.h Don't redefine htonl and ntohl on big-endian 2010-03-31 14:21:39 -07:00
cygwin.c
cygwin.h
fopen.c
hstrerror.c
inet_ntop.c inet_ntop: fix a couple of old-style decls 2010-11-04 16:53:50 -07:00
inet_pton.c compat: add inet_pton and inet_ntop prototypes 2010-11-04 16:53:49 -07:00
memmem.c
mingw.c mingw: use real pid 2010-11-04 16:53:50 -07:00
mingw.h mingw: use real pid 2010-11-04 16:53:50 -07:00
mkdtemp.c
mmap.c
msvc.c
msvc.h
pread.c
qsort.c
setenv.c
snprintf.c
strcasestr.c
strlcpy.c
strtok_r.c compat: add strtok_r() 2010-08-14 19:35:38 -07:00
strtoumax.c
unsetenv.c
win32.h
win32mmap.c Fix "Out of memory? mmap failed" for files larger than 4GB on Windows 2010-05-20 16:11:06 -07:00
winansi.c