emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] feature/gnus-select b8c0e0c 045/218: Fix create_process bu


From: Andrew G Cohen
Subject: [Emacs-diffs] feature/gnus-select b8c0e0c 045/218: Fix create_process bug breaking eudc-expand-inline
Date: Fri, 14 Dec 2018 03:34:52 -0500 (EST)

branch: feature/gnus-select
commit b8c0e0cbd007c1b7b45a609797578358653cef01
Author: Paul Eggert <address@hidden>
Commit: Andrew G Cohen <address@hidden>

    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.
---
 src/process.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/process.c b/src/process.c
index 6ba27a3..9b9b9f3 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)
     {
       /* 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)
        {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]