]> 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>
Mon, 4 Apr 2022 14:08:14 +0000 (16:08 +0200)
commit8103b060d89ac63a12c439087bd46c30da72cd97
treec1408a83c383f0d89c32c42c8c4615e3fdc93148
parente7cd4bae44585b4fc0d57fbb98f49930b945a817
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.
src/callproc.c