Home GnuPG
Diffusion GnuPG 11bbd99477ef

scd: signal mask should be set just after npth_init.

Description

scd: signal mask should be set just after npth_init.

* scd/scdaemon.c (setup_signal_mask): New.
(main): Call setup_signal_mask.
(handle_connections): Remove signal mask setup.

For new thread, signal mask is inherited by thread creation.
Thus, it is best to setup signal mask just after npth_init.

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Mar 19 2018, 8:36 AM
Parents
rG2c85e202bc30: scd: Better user interaction for factory-reset.
Branches
Unknown
Tags
Unknown