diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-26 22:34:46 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-27 02:22:58 +0100 |
commit | 0c5eb0562abec6f845f07c30b2ad2515900ec1e5 (patch) | |
tree | 10a05b9191642ce96812a96ed53031b9338f3528 /src/basic/nss-util.h | |
parent | fccd4b67b5fd296cb5840d1b8e0ea8455cb6a1ed (diff) |
nss: block various signals while running NSS lookups
Let's make sure our poll() calls don't get interrupted where they shouldn't (SIGALRM, ...), but allow them to be
interrupted where they should (SIGINT, ...).
Fixes #1965
Diffstat (limited to 'src/basic/nss-util.h')
-rw-r--r-- | src/basic/nss-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/nss-util.h b/src/basic/nss-util.h index cc30d93aad..4be0136da6 100644 --- a/src/basic/nss-util.h +++ b/src/basic/nss-util.h @@ -27,6 +27,8 @@ #include <pwd.h> #include <resolv.h> +#define NSS_SIGNALS_BLOCK SIGALRM,SIGVTALRM,SIGPIPE,SIGCHLD,SIGTSTP,SIGIO,SIGHUP,SIGUSR1,SIGUSR2,SIGPROF,SIGURG,SIGWINCH + #define NSS_GETHOSTBYNAME_PROTOTYPES(module) \ enum nss_status _nss_##module##_gethostbyname4_r( \ const char *name, \ |