diff options
| author | Paul Eggert | 2018-03-10 18:26:01 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-03-10 18:27:42 -0800 |
| commit | 5c91ca8f30098cb2593ca375daa82d25aef03ad7 (patch) | |
| tree | 439cfeba29141249d53d6b6a278e507c73c21b7a /src/process.c | |
| parent | e244fed5e041c706dd10c60bd893634902f04aaa (diff) | |
| download | emacs-5c91ca8f30098cb2593ca375daa82d25aef03ad7.tar.gz emacs-5c91ca8f30098cb2593ca375daa82d25aef03ad7.zip | |
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.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/process.c b/src/process.c index bccc3ac3992..b201e9b6acc 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -2087,9 +2087,9 @@ create_process (Lisp_Object process, char **new_argv, Lisp_Object current_dir) | |||
| 2087 | { | 2087 | { |
| 2088 | /* Make the pty be the controlling terminal of the process. */ | 2088 | /* Make the pty be the controlling terminal of the process. */ |
| 2089 | #ifdef HAVE_PTYS | 2089 | #ifdef HAVE_PTYS |
| 2090 | /* First, disconnect its current controlling terminal. */ | 2090 | /* First, disconnect its current controlling terminal. |
| 2091 | if (pty_flag) | 2091 | Do this even if !PTY_FLAG; see Bug#30762. */ |
| 2092 | setsid (); | 2092 | setsid (); |
| 2093 | /* Make the pty's terminal the controlling terminal. */ | 2093 | /* Make the pty's terminal the controlling terminal. */ |
| 2094 | if (pty_flag && forkin >= 0) | 2094 | if (pty_flag && forkin >= 0) |
| 2095 | { | 2095 | { |