Function: interrupt-process
interrupt-process is a function defined in process.c.
Signature
(interrupt-process &optional PROCESS CURRENT-GROUP)
Documentation
Interrupt process PROCESS.
PROCESS may be a process, a buffer, or the name of a process or buffer. No arg or nil means current buffer's process. Second arg CURRENT-GROUP non-nil means send signal to the current process-group of the process's controlling terminal rather than to the process's own process group. If the process is a shell, this means interrupt current subjob rather than the shell.
If CURRENT-GROUP is lambda, and if the shell owns the terminal,
don't send the signal.
This function calls the functions of interrupt-process-functions in
the order of the list, until one of them returns non-nil.
Probably introduced at or before Emacs version 20.4.
Source Code
// Defined in /usr/src/emacs/src/process.c
{
return CALLN (Frun_hook_with_args_until_success, Qinterrupt_process_functions,
process, current_group);
}