Fix a recent change in reading from sub-processes

* src/process.c (make_process): Move to here...
(create_process): ...from here.
This commit is contained in:
Eli Zaretskii 2024-06-09 12:13:18 +03:00
parent f869f1ffc2
commit 1f407e286c

View file

@ -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)
{