[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 15a9e73a17: * src/callproc.c (emacs_spawn): Fix Mac OS X build.
From: |
Po Lu |
Subject: |
master 15a9e73a17: * src/callproc.c (emacs_spawn): Fix Mac OS X build. |
Date: |
Fri, 5 Aug 2022 22:27:16 -0400 (EDT) |
branch: master
commit 15a9e73a1793a61b87d3f460e2e4bc5b7df1e6a8
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
* src/callproc.c (emacs_spawn): Fix Mac OS X build.
---
src/callproc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/callproc.c b/src/callproc.c
index aec0a2f5a5..e8e4c48b5b 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 ();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 15a9e73a17: * src/callproc.c (emacs_spawn): Fix Mac OS X build.,
Po Lu <=