aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorEli Zaretskii2024-06-09 12:13:18 +0300
committerEli Zaretskii2024-06-09 12:13:18 +0300
commit1f407e286ce07a15f9ccd837de5daf19646339b5 (patch)
treea4380d98533a8d6b7ec0ede195572ec0021b7f0f /src/process.c
parentf869f1ffc2ef0e126e633553e6b4c38bee90f7f8 (diff)
downloademacs-1f407e286ce07a15f9ccd837de5daf19646339b5.tar.gz
emacs-1f407e286ce07a15f9ccd837de5daf19646339b5.zip
Fix a recent change in reading from sub-processes
* src/process.c (make_process): Move to here... (create_process): ...from here.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c
index 94aeac4d7da..524ee1dfa5a 100644
--- a/src/process.c
+++ b/src/process.c
@@ -927,6 +927,8 @@ make_process (Lisp_Object name)
927 eassert (NILP (p->gnutls_boot_parameters)); 927 eassert (NILP (p->gnutls_boot_parameters));
928#endif 928#endif
929 929
930 p->readmax = clip_to_bounds (1, read_process_output_max, INT_MAX);
931
930 /* If name is already in use, modify it until it is unused. */ 932 /* If name is already in use, modify it until it is unused. */
931 933
932 Lisp_Object name1 = name; 934 Lisp_Object name1 = name;
@@ -2194,8 +2196,6 @@ create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir)
2194 outchannel = p->open_fd[WRITE_TO_SUBPROCESS]; 2196 outchannel = p->open_fd[WRITE_TO_SUBPROCESS];
2195 } 2197 }
2196 2198
2197 p->readmax = clip_to_bounds (1, read_process_output_max, INT_MAX);
2198
2199 /* Set up stdout for the child process. */ 2199 /* Set up stdout for the child process. */
2200 if (ptychannel >= 0 && p->pty_out) 2200 if (ptychannel >= 0 && p->pty_out)
2201 { 2201 {