From: Eli Zaretskii Date: Sun, 9 Jun 2024 09:13:18 +0000 (+0300) Subject: Fix a recent change in reading from sub-processes X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=68fddaa6255144a4448e5483eb3e3b43386767e6;p=emacs.git Fix a recent change in reading from sub-processes * src/process.c (make_process): Move to here... (create_process): ...from here. (cherry picked from commit 1f407e286ce07a15f9ccd837de5daf19646339b5) --- 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) eassert (NILP (p->gnutls_boot_parameters)); #endif + p->readmax = clip_to_bounds (1, read_process_output_max, INT_MAX); + /* If name is already in use, modify it until it is unused. */ Lisp_Object name1 = name; @@ -2194,8 +2196,6 @@ create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir) outchannel = p->open_fd[WRITE_TO_SUBPROCESS]; } - p->readmax = clip_to_bounds (1, read_process_output_max, INT_MAX); - /* Set up stdout for the child process. */ if (ptychannel >= 0 && p->pty_out) {