tree-wide: in all threads we fork off in library code, block all signals
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Dec 2017 20:21:54 +0000 (21:21 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Jan 2018 12:27:27 +0000 (13:27 +0100)
commit5e9f01e8a6a9589daf01574418cef1c12b23210c
treef332a748600dab087e0a415296c88fe45b8329e6
parentbe39f6ee315e8935fc4999ffd3b072e358043714
tree-wide: in all threads we fork off in library code, block all signals

This ensures that in all threads we fork off in the background in our
code we mask out all signals, so that our thread won't end up getting
signals delivered the main process should be getting.

We always set the signal mask before forking off the thread, so that the
thread has the right mask set from its earliest existance on.
src/basic/async.c
src/journal/journal-file.c
src/libsystemd/sd-resolve/sd-resolve.c