]> git.eshelyaron.com Git - emacs.git/commit
Use correct signal oldset in posix_spawn implementation
authorJürgen Hötzel <juergen@archlinux.org>
Fri, 4 Mar 2022 09:08:14 +0000 (10:08 +0100)
committerRobert Pluim <rpluim@gmail.com>
Thu, 7 Apr 2022 10:54:26 +0000 (12:54 +0200)
commit98abf01fd681931f8870569ff559b547579d7cef
tree8aaa9ff2b59348a431625c6a4b8d969c716c5d92
parentaab36e18950e23100718eaedb14ef9176f5d3da2
Use correct signal oldset in posix_spawn implementation

posix_spawn was restoring the wrong signal set, which still had
SIGCHLD and SIGINT masked, causing problems with child processes that
spawned child processes.  (Bug#54667)

See the thread ending at
https://lists.gnu.org/archive/html/emacs-devel/2022-03/msg00067.html
for more details.

* src/callproc.c (emacs_spawn): Pass oldset parameter.
(emacs_posix_spawn_init_attributes): Use correct oldset.
(emacs_posix_spawn_init): Remove intermediate function.

(cherry picked from commit 8103b060d89ac63a12c439087bd46c30da72cd97)
src/callproc.c