diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-09-04 12:35:34 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-04 12:35:34 -0700 |
commit | 05584b2a4e18e0693ac2af6dd9650e59351786ed (patch) | |
tree | 7e3a0bf7846056881980eaaf270c976f7204e20d /compat | |
parent | 0335b647a21d7940e1faeefa380c1411374a45a6 (diff) | |
parent | 64a99eb4760de2ce2f0c04e146c0a55c34f50f20 (diff) | |
download | git-05584b2a4e18e0693ac2af6dd9650e59351786ed.tar.gz git-05584b2a4e18e0693ac2af6dd9650e59351786ed.tar.xz |
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compat/mingw.c b/compat/mingw.c index bb92c436f..22ee9ef1c 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; |