From: Paul Eggert Date: Sun, 21 May 2017 08:46:44 +0000 (-0700) Subject: Work around macOS bug with vforked child X-Git-Tag: emacs-26.0.90~521^2~328 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cb6d66974416f535fefb42c974b73037e257399a;p=emacs.git Work around macOS bug with vforked child * src/callproc.c (call_process) [DARWIN_OS]: Include workaround for apparent macOS bug. --- diff --git a/src/callproc.c b/src/callproc.c index 7c85eed835f..4cec02be7ef 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -631,6 +631,14 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd, if (pid == 0) { +#ifdef DARWIN_OS + /* Work around a macOS bug, where SIGCHLD is apparently + delivered to a vforked child instead of to its parent. See: + http://lists.gnu.org/archive/html/emacs-devel/2017-05/msg00342.html + */ + signal (SIGCHLD, SIG_DFL); +#endif + unblock_child_signal (&oldset); #ifdef DARWIN_OS