diff options
| author | Michael Albinus | 2017-08-24 15:53:56 +0200 |
|---|---|---|
| committer | Michael Albinus | 2017-08-24 15:53:56 +0200 |
| commit | 0332a0ef2bbe6954f080cb6c9d3f0cc2517a1ab1 (patch) | |
| tree | dd5db1d8637ddc8ac9f4653d012dced23816bf68 /doc | |
| parent | fa5e63e40412f6152dbe079a766845112d598479 (diff) | |
| download | emacs-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.texi | 16 |
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 | |||
| 1351 | children of Emacs. @xref{System Processes}. | 1351 | children of Emacs. @xref{System Processes}. |
| 1352 | @end deffn | 1352 | @end deffn |
| 1353 | 1353 | ||
| 1354 | Sometimes, it is necessary to send a signal to a non-local | ||
| 1355 | asynchronous process. This is possible by writing an own | ||
| 1356 | @code{interrupt-process} implementation. This function must be added | ||
| 1357 | then to @code{interrupt-process-functions}. | ||
| 1358 | |||
| 1359 | @defvar interrupt-process-functions | ||
| 1360 | This variable is a list of functions to be called for | ||
| 1361 | @code{interrupt-process}. The arguments of the functions are the same | ||
| 1362 | as for @code{interrupt-process}. These functions are called in the | ||
| 1363 | order of the list, until one of them returns non-@code{nil}. The | ||
| 1364 | default function, which shall always be the last in this list, is | ||
| 1365 | @code{internal-default-interrupt-process}. | ||
| 1366 | |||
| 1367 | This 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 |