mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-04 20:27:45 +00:00
Fix create_process bug breaking eudc-expand-inline
Problem reported by Thomas Fitzsimmons (Bug#30762). * src/process.c (create_process) [HAVE_PTYS]: Call setsid even if !PTY_FLAG.
This commit is contained in:
parent
e244fed5e0
commit
5c91ca8f30
@ -2087,9 +2087,9 @@ create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir)
|
||||
{
|
||||
/* Make the pty be the controlling terminal of the process. */
|
||||
#ifdef HAVE_PTYS
|
||||
/* First, disconnect its current controlling terminal. */
|
||||
if (pty_flag)
|
||||
setsid ();
|
||||
/* First, disconnect its current controlling terminal.
|
||||
Do this even if !PTY_FLAG; see Bug#30762. */
|
||||
setsid ();
|
||||
/* Make the pty's terminal the controlling terminal. */
|
||||
if (pty_flag && forkin >= 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user