Function: magit-process-kill

magit-process-kill is an interactive and natively 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

magit-process-mode-map k

Source Code

;; Defined in /nix/store/irvbdy0zra0dn8fpd008f32x5ix6qm5v-emacs-packages-deps/share/emacs/site-lisp/elpa/magit-20261005.508/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))))