diff options
| author | Daiki Ueno | 2015-04-07 17:42:09 +0900 |
|---|---|---|
| committer | Daiki Ueno | 2015-04-11 07:59:27 +0900 |
| commit | f55ea05bdf60e24c09f9064fc0d2e8a114d6e358 (patch) | |
| tree | ed901f31fffe7afa1d4644dd9980042d7b35895b /src/process.h | |
| parent | a2940cd43e7931d16d3a3ce2cf5d4acd148dd00c (diff) | |
| download | emacs-f55ea05bdf60e24c09f9064fc0d2e8a114d6e358.tar.gz emacs-f55ea05bdf60e24c09f9064fc0d2e8a114d6e358.zip | |
Add facility to collect stderr of async subprocess
* src/w32.h (register_aux_fd): New function declaration.
* src/w32.c (register_aux_fd): New function.
* src/process.h (struct Lisp_Process): New member stderrproc.
* src/process.c (PIPECONN_P): New macro.
(PIPECONN1_P): New macro.
(Fdelete_process, Fprocess_status, Fset_process_buffer)
(Fset_process_filter, Fset_process_sentinel, Fstop_process)
(Fcontinue_process): Handle pipe process specially.
(create_process): Respect p->stderrproc.
(Fmake_pipe_process): New function.
(Fmake_process): Add new keyword argument :stderr.
(wait_reading_process_output): Specially handle a pipe process when
it gets an EOF.
(syms_of_process): Register Qpipe and Smake_pipe_process.
* doc/lispref/processes.texi (Asynchronous Processes): Document
`make-pipe-process' and `:stderr' keyword of `make-process'.
* lisp/subr.el (start-process): Suggest to use `make-process' handle
standard error separately.
* test/automated/process-tests.el (process-test-stderr-buffer)
(process-test-stderr-filter): New tests.
* etc/NEWS: Mention new process type `pipe' and its usage with the
`:stderr' keyword of `make-process'.
Diffstat (limited to 'src/process.h')
| -rw-r--r-- | src/process.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h index 36979dcac9e..e889055dc23 100644 --- a/src/process.h +++ b/src/process.h | |||
| @@ -105,6 +105,9 @@ struct Lisp_Process | |||
| 105 | Lisp_Object gnutls_cred_type; | 105 | Lisp_Object gnutls_cred_type; |
| 106 | #endif | 106 | #endif |
| 107 | 107 | ||
| 108 | /* Pipe process attached to the standard error of this process. */ | ||
| 109 | Lisp_Object stderrproc; | ||
| 110 | |||
| 108 | /* After this point, there are no Lisp_Objects any more. */ | 111 | /* After this point, there are no Lisp_Objects any more. */ |
| 109 | /* alloc.c assumes that `pid' is the first such non-Lisp slot. */ | 112 | /* alloc.c assumes that `pid' is the first such non-Lisp slot. */ |
| 110 | 113 | ||