summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-09-04 19:35:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-09-04 19:35:34 (GMT)
commit05584b2a4e18e0693ac2af6dd9650e59351786ed (patch)
tree7e3a0bf7846056881980eaaf270c976f7204e20d /compat
parent0335b647a21d7940e1faeefa380c1411374a45a6 (diff)
parent64a99eb4760de2ce2f0c04e146c0a55c34f50f20 (diff)
downloadgit-05584b2a4e18e0693ac2af6dd9650e59351786ed.zip
git-05584b2a4e18e0693ac2af6dd9650e59351786ed.tar.gz
git-05584b2a4e18e0693ac2af6dd9650e59351786ed.tar.bz2
Merge branch 'nd/gc-lock-against-each-other'
* nd/gc-lock-against-each-other: gc: reject if another gc is running, unless --force is given
Diffstat (limited to 'compat')
-rw-r--r--compat/mingw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/compat/mingw.c b/compat/mingw.c
index bb92c43..22ee9ef 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -1086,6 +1086,12 @@ int mingw_kill(pid_t pid, int sig)
errno = err_win_to_posix(GetLastError());
CloseHandle(h);
return -1;
+ } else if (pid > 0 && sig == 0) {
+ HANDLE h = OpenProcess(PROCESS_QUERY_INFORMATION, FALSE, pid);
+ if (h) {
+ CloseHandle(h);
+ return 0;
+ }
}
errno = EINVAL;