]> git.eshelyaron.com Git - emacs.git/commit
Dissociate controlling tty better on Darwin
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 10 Nov 2018 17:00:43 +0000 (09:00 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 10 Nov 2018 17:04:42 +0000 (09:04 -0800)
commit9cd23a29147acb86c860ce11febe24cf837f3f8a
tree8d13a8949a3e4f67b2b7a9e3baa2944b9f4162b5
parenta062fc4137ff195fe269076cda07a61c2e1a8012
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.
src/callproc.c
src/process.c
src/process.h