aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.h
diff options
context:
space:
mode:
authorDmitry Gutov2024-06-09 02:51:47 +0300
committerDmitry Gutov2024-06-09 02:51:47 +0300
commit8cf6e311b87fabeba70d59647883a86c8c92b86f (patch)
tree143445c17eaf8874cae0d0496ee085555fee249b /src/process.h
parentbbc18031aff6f22a1f2b63355f18f294fbdeb797 (diff)
downloademacs-8cf6e311b87fabeba70d59647883a86c8c92b86f.tar.gz
emacs-8cf6e311b87fabeba70d59647883a86c8c92b86f.zip
Remember the value of read_process_output_max when process is created
* src/process.h (Lisp_Process): Add field readmax. * src/process.c (read_process_output): Use it. (create_process): Save the value of read_process_output_max to it when the process is created (bug#66020). Use for pipe size.
Diffstat (limited to 'src/process.h')
-rw-r--r--src/process.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h
index 3f56b087084..f497a64c3d1 100644
--- a/src/process.h
+++ b/src/process.h
@@ -153,6 +153,8 @@ struct Lisp_Process
153 unsigned int adaptive_read_buffering : 2; 153 unsigned int adaptive_read_buffering : 2;
154 /* Skip reading this process on next read. */ 154 /* Skip reading this process on next read. */
155 bool_bf read_output_skip : 1; 155 bool_bf read_output_skip : 1;
156 /* Maximum number of bytes to read in a single chunk. */
157 ptrdiff_t readmax;
156 /* True means kill silently if Emacs is exited. 158 /* True means kill silently if Emacs is exited.
157 This is the inverse of the `query-on-exit' flag. */ 159 This is the inverse of the `query-on-exit' flag. */
158 bool_bf kill_without_query : 1; 160 bool_bf kill_without_query : 1;