git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Warning from AV software about kill.exe

From
EBErik Blake <erik@icefield.yk.ca>
Date
Jan 4, 2012, 09:15 UTC
Message-ID
<4F0418B1.5050403@icefield.yk.ca>
In-Reply-To
<878vm4lb9q.fsf@fox.patthoyts.tk>

Another way to implement this (on Windows) would be for the git programs to tag themselves with a mutex. Then the "kill" program can determine which git programs are running and send them user-defined windows messages to shut themselves down. Alternatively, you could send the programs the standard windows WM_CLOSE message, but the OS or an AV program might still be troubled by that behaviour.

This is how we implement this type of behaviour in our windows programs. It does not raise the ire of the OS or AV since you do not have one process trying to shut down another. It also bypasses all issues with process privileges etc.

Erik
On 2011-12-22 19:19, Pat Thoyts wrote:
Show 24 quoted lines
> Thomas Rast<trast@student.ethz.ch>  writes:
>
>> Erik Blake<erik@icefield.yk.ca>  writes:
>>
>>> I'm running git under Win7 64. As I selected "Repository|Visualize all
>>> branch history" in the git gui, my AV software (Trustport) trapped the
>>> bin\kill.exe program for "trying to modify system global settings
>>> (time, timezone, registry quota, etc.)"
>>>
>>> Does anyone know the details of this process and what it's function
>>> is? First time I've seen it, though I'm a relatively new user.
>> 'kill' is a standard unix utility that sends signals to processes, in
>> particular signals that cause the processes to exit or be killed
>> forcibly by the kernel, hence the name.  (I don't know how the windows
>> equivalent works under the hood, but presumably it's something similar.)
>>
>> git-gui and gitk use kill to terminate background worker processes that
>> are no longer needed because you closed the window their output would
>> have been displayed in, etc.
> You might try replacing the command in the tcl scripts with 'exec
> taskkill /f /pid $pid' and see if that avoids the error. taskkill is
> present on XP and above as part of the OS distribution so shouldn't
> suffer any AV complaints.
>
Previous: Pat ThoytsNext: Erik Faye-Lund
Message 4 of 6 in “Warning from AV software about kill.exe”
  1. Erik BlakeDec 22, 2011
  2. Thomas RastDec 22, 2011
  3. Pat ThoytsDec 22, 2011
  4. Erik BlakeJan 4, 2012
  5. Erik Faye-LundJan 5, 2012
  6. Erik BlakeJan 6, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.