Function: magit-process-kill

magit-process-kill is an interactive and byte-compiled function defined in magit-process.el.

Signature

(magit-process-kill)

Documentation

Interrupt or kill the process at point.

First try to interrupt the process. If that fails a second invocation instead kill the process.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260822.1158/magit-process.el
(defun magit-process-kill ()
  "Interrupt or kill the process at point.
First try to interrupt the process.  If that fails a second
invocation instead kill the process."
  (interactive)
  (cond-let
    [[process (magit-section-value-if 'process)]]
    ((not process)
     (message "No process at point"))
    ((not (eq (process-status process) 'run))
     (message "Process no longer running"))
    ((not (eq (process-get process 'sigint) t))
     (magit-confirm 'kill-process)
     (process-put process 'sigint t)
     (interrupt-process process))
    ((kill-process process))))