From 68fddaa6255144a4448e5483eb3e3b43386767e6 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 9 Jun 2024 12:13:18 +0300 Subject: [PATCH] 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) --- src/process.c | 4 ++-- 1 file 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) 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) { -- 2.39.2