projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e091c8
)
* src/callproc.c (emacs_spawn): Fix Mac OS X build.
author
Po Lu
<luangruo@yahoo.com>
Sat, 6 Aug 2022 02:27:03 +0000
(10:27 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Sat, 6 Aug 2022 02:27:03 +0000
(10:27 +0800)
src/callproc.c
patch
|
blob
|
history
diff --git
a/src/callproc.c
b/src/callproc.c
index aec0a2f5a58912c9bf618783ec1e78df729b83b0..e8e4c48b5be62f546f3a13a267eb65863ea564f3 100644
(file)
--- 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 ();