diff options
| author | Paul Eggert | 2018-11-10 09:00:43 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-11-10 09:04:42 -0800 |
| commit | 9cd23a29147acb86c860ce11febe24cf837f3f8a (patch) | |
| tree | 8d13a8949a3e4f67b2b7a9e3baa2944b9f4162b5 /src/process.h | |
| parent | a062fc4137ff195fe269076cda07a61c2e1a8012 (diff) | |
| download | emacs-9cd23a29147acb86c860ce11febe24cf837f3f8a.tar.gz emacs-9cd23a29147acb86c860ce11febe24cf837f3f8a.zip | |
Dissociate controlling tty better on Darwin
* src/process.c (dissociate_controlling_tty): New function.
(create_process): Use it to dissociate controlling tty if setsid
fails, which happens on Darwin after a vfork (Bug#33154).
Do this on all platforms, not just on Darwin, as a similar
problem is plausible elsewhere.
* src/callproc.c (call_process): Use the new function here, too,
for consistency and to avoid duplicate code.
Diffstat (limited to 'src/process.h')
| -rw-r--r-- | src/process.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h index 3c6dd7b91f4..67b783400d8 100644 --- a/src/process.h +++ b/src/process.h | |||
| @@ -300,6 +300,7 @@ extern Lisp_Object network_interface_info (Lisp_Object); | |||
| 300 | extern Lisp_Object remove_slash_colon (Lisp_Object); | 300 | extern Lisp_Object remove_slash_colon (Lisp_Object); |
| 301 | 301 | ||
| 302 | extern void update_processes_for_thread_death (Lisp_Object); | 302 | extern void update_processes_for_thread_death (Lisp_Object); |
| 303 | extern void dissociate_controlling_tty (void); | ||
| 303 | 304 | ||
| 304 | INLINE_HEADER_END | 305 | INLINE_HEADER_END |
| 305 | 306 | ||