scd: signal mask should be set just after npth_init.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 19 Mar 2018 07:36:30 +0000 (16:36 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 19 Mar 2018 07:36:30 +0000 (16:36 +0900)
commit11bbd99477ef5ba5b7db0c17607b10af03c68afb
treec46f154022214c802ecfd6bd8fd599766e6ed88e
parent2c85e202bc30231b9555100dec0c490c60d7b88c
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>
scd/scdaemon.c