aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMichael Albinus2017-08-24 15:53:56 +0200
committerMichael Albinus2017-08-24 15:53:56 +0200
commit0332a0ef2bbe6954f080cb6c9d3f0cc2517a1ab1 (patch)
treedd5db1d8637ddc8ac9f4653d012dced23816bf68 /doc
parentfa5e63e40412f6152dbe079a766845112d598479 (diff)
downloademacs-0332a0ef2bbe6954f080cb6c9d3f0cc2517a1ab1.tar.gz
emacs-0332a0ef2bbe6954f080cb6c9d3f0cc2517a1ab1.zip
Minor improvements for tramp-interrupt-process, documentation
* doc/lispref/processes.texi (Signals to Processes): * etc/NEWS: Document interrupt-process-functions. * lisp/net/tramp.el (tramp-interrupt-process): Test also for `process-live-p'. * src/process.c (Vinterrupt_process_functions): Fix docstring. * test/lisp/net/tramp-tests.el (tramp-test28-interrupt-process): Extend test.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/processes.texi16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi
index 292d55d50c5..45e04a5ab88 100644
--- a/doc/lispref/processes.texi
+++ b/doc/lispref/processes.texi
@@ -1351,6 +1351,22 @@ integer); that allows you to send signals to processes that are not
1351children of Emacs. @xref{System Processes}. 1351children of Emacs. @xref{System Processes}.
1352@end deffn 1352@end deffn
1353 1353
1354Sometimes, it is necessary to send a signal to a non-local
1355asynchronous process. This is possible by writing an own
1356@code{interrupt-process} implementation. This function must be added
1357then to @code{interrupt-process-functions}.
1358
1359@defvar interrupt-process-functions
1360This variable is a list of functions to be called for
1361@code{interrupt-process}. The arguments of the functions are the same
1362as for @code{interrupt-process}. These functions are called in the
1363order of the list, until one of them returns non-@code{nil}. The
1364default function, which shall always be the last in this list, is
1365@code{internal-default-interrupt-process}.
1366
1367This is the mechanism, how Tramp implements @code{interrupt-process}.
1368@end defvar
1369
1354@node Output from Processes 1370@node Output from Processes
1355@section Receiving Output from Processes 1371@section Receiving Output from Processes
1356@cindex process output 1372@cindex process output