aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c
index 6ba27a33f4d..9b9b9f35503 100644
--- a/src/process.c
+++ b/src/process.c
@@ -2096,9 +2096,9 @@ create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir)
2096 { 2096 {
2097 /* Make the pty be the controlling terminal of the process. */ 2097 /* Make the pty be the controlling terminal of the process. */
2098#ifdef HAVE_PTYS 2098#ifdef HAVE_PTYS
2099 /* First, disconnect its current controlling terminal. */ 2099 /* First, disconnect its current controlling terminal.
2100 if (pty_flag) 2100 Do this even if !PTY_FLAG; see Bug#30762. */
2101 setsid (); 2101 setsid ();
2102 /* Make the pty's terminal the controlling terminal. */ 2102 /* Make the pty's terminal the controlling terminal. */
2103 if (pty_flag && forkin >= 0) 2103 if (pty_flag && forkin >= 0)
2104 { 2104 {