GitCommands.GitCommands.Kill C# (CSharp) Method

Kill() public method

public Kill ( ) : void
return void
        public void Kill()
        {
            //If there was another process running, kill it
            if (Process == null)
                return;
            try
            {
                if (!Process.HasExited)
                {
                    Process.Kill();
                }
                Process.Close();
            }
            catch (Exception ex)
            {
                Trace.WriteLine(ex);
            }
        }
GitCommands