Alexander Gavrilov said the following on 14.07.2008 12:38:
Git binaries are pure Windows applications, not MSys apps. (Compiled with
MinGW, but not linked to MSys DLLs.) Thus, it will definitely not respond to
the Cygwin/MSys process infrastructure.

Aha!

Killing a native Windows application definitely requires a native kill
utility. Cygwin version of kill.exe supports a special '-f' flag to
kill native apps, but the msys variant that I downloaded (found in
coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2) doesn't understand it. It
seems that Cygwin uses a separate custom implementation.

The PsTools from SysInternals have a PsKill command, which takes a -t option, which will kill the process and all its descendants. Should work for Msys processes and forked off Windows processes, if you can get the Windows PID of the MSys process you which to kill..

I guess "PsList git-gui" or "PsList gitk" would give you that..


However, (sorry to burst the bubble, but) I don't think you can use these tools, since they require the user to accept a M$ EULA before using them. ("These license terms are an agreement between Sysinternals (a wholly owned subsidiary of Microsoft Corporation) and you.")

So, I recommend you write your own little tool for this process. Shouldn't be that hard.

--
.marius

Reply via email to