]> git.eshelyaron.com Git - emacs.git/commit
Use vfork if possible on Darwin (bug#26397)
authorAlan Third <alan@idiocy.org>
Sun, 9 Apr 2017 19:10:33 +0000 (20:10 +0100)
committerAlan Third <alan@idiocy.org>
Tue, 18 Apr 2017 10:42:30 +0000 (11:42 +0100)
commita13eaddce2ddbe3ba0b7f4c81715bc0fcdba99f6
tree5bf3f0b8fbd2187bb5e08261f29811ea269d4a33
parent4ad6be65f68a5c875ecbaa9e66d8ced28f43670a
Use vfork if possible on Darwin (bug#26397)

Co-authored-by: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* src/conf_post.h (HAVE_WORKING_VFORK): Don't undef.
(vfork): Don't define.
* src/process.c (create_process) [DARWIN_OS]: Use fork if pty_flag is
set, otherwise vfork.
* src/callproc.c (call_process) [DARWIN_OS]: Use TIOCNOTTY to detach
the controlling terminal instead of setsid.
src/callproc.c
src/conf_post.h
src/process.c