summaryrefslogtreecommitdiff
path: root/src/callproc.c
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-08-06 10:27:03 +0800
committerPo Lu <luangruo@yahoo.com>2022-08-06 10:27:03 +0800
commit15a9e73a1793a61b87d3f460e2e4bc5b7df1e6a8 (patch)
tree4959aff9321007703e8aeb850f9a9e4e523a66d0 /src/callproc.c
parent4e091c8ddf6bf421a4dd0210a3a4b77a3ecf24f5 (diff)
downloademacs-15a9e73a1793a61b87d3f460e2e4bc5b7df1e6a8.tar.gz
emacs-15a9e73a1793a61b87d3f460e2e4bc5b7df1e6a8.tar.bz2
emacs-15a9e73a1793a61b87d3f460e2e4bc5b7df1e6a8.zip
* src/callproc.c (emacs_spawn): Fix Mac OS X build.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c
index aec0a2f5a58..e8e4c48b5be 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -1488,7 +1488,7 @@ emacs_spawn (pid_t *newpid, int std_in, int std_out, int std_err,
/* Darwin doesn't let us run setsid after a vfork, so use fork when
necessary. Below, we reset SIGCHLD handling after a vfork, as
apparently macOS can mistakenly deliver SIGCHLD to the child. */
- if (pty != NULL)
+ if (pty_in || pty_out)
pid = fork ();
else
pid = VFORK ();