aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf_post.h
diff options
context:
space:
mode:
authorAlan Third2017-04-09 20:10:33 +0100
committerAlan Third2017-04-18 11:42:30 +0100
commita13eaddce2ddbe3ba0b7f4c81715bc0fcdba99f6 (patch)
tree5bf3f0b8fbd2187bb5e08261f29811ea269d4a33 /src/conf_post.h
parent4ad6be65f68a5c875ecbaa9e66d8ced28f43670a (diff)
downloademacs-a13eaddce2ddbe3ba0b7f4c81715bc0fcdba99f6.tar.gz
emacs-a13eaddce2ddbe3ba0b7f4c81715bc0fcdba99f6.zip
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.
Diffstat (limited to 'src/conf_post.h')
-rw-r--r--src/conf_post.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/conf_post.h b/src/conf_post.h
index 30c948e39af..95ebd5511ca 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -99,12 +99,6 @@ typedef bool bool_bf;
99#define realloc unexec_realloc 99#define realloc unexec_realloc
100#define free unexec_free 100#define free unexec_free
101#endif 101#endif
102/* The following solves the problem that Emacs hangs when evaluating
103 (make-comint "test0" "/nodir/nofile" nil "") when /nodir/nofile
104 does not exist. Also, setsid is not allowed in the vfork child's
105 context as of Darwin 9/Mac OS X 10.5. */
106#undef HAVE_WORKING_VFORK
107#define vfork fork
108#endif /* DARWIN_OS */ 102#endif /* DARWIN_OS */
109 103
110/* If HYBRID_MALLOC is defined (e.g., on Cygwin), emacs will use 104/* If HYBRID_MALLOC is defined (e.g., on Cygwin), emacs will use